Ryan Williams

Results 13 comments of Ryan Williams

This could be caused by temporary changes in the wordpress or PHP docker images, although travis still builds the container okay. Does https://github.com/postlight/headless-wp-starter/tree/fix-wordpress-docker-tag fix this problem for any of you?...

I've been looking into this and learned WordPress redirects post slugs if you make an API request using `?filter[name]`: `/wp-json/wp/v2/posts?filter[name]=sample-post` But, it doesn't redirect when you use `?slug`: `/wp-json/wp/v2/posts?slug=sample-post` This...

First of all, I was incorrect thinking `filter` would redirect - my test was invalid, neither `filter` nor `slug` redirect in the vanilla WP API. After reading the commentary in...

I agree the frontend should redirect. What's still unclear (IMO) is what the API should do to indicate this. If it does redirect, the frontend can recognize that and also...

@Emiliano-Bucci See https://github.com/postlight/headless-wp-starter/compare/master...modelm:fix-slug-redirect for a proof-of-concept. The API sends a 301 if 1) it would otherwise 404 and 2) it finds a post that exists with the requested slug using...

If you add that filter to your wordpress install it will redirect API requests when there's an old slug match. It's up to your frontend to process/follow that (in the...

Is this a brand new install? Can you provide more details like your OS and docker environment? Try rebuilding your wp-headless container: `docker-compose up --build --force-recreate wp-headless`

I don't have a linux host handy to test, but can someone please try https://github.com/postlight/headless-wp-starter/compare/fix-linux-chmod and see if that helps?

To avoid a related error with WP CLI, the require line should be closer to the top of the file under `namespace` instead of inside `init()`.

I understand, but I want to use this plugin on a site that's already got the SDK and does not manage plugins with composer. Maybe you should add a disclaimer...