I’ve been testing Frontity with a local instance of Wordpress and have been able to grab data from posts, pages, etc so far. I have a Wordpress instance set up publicly (not ssl/https) and am testing grabbing data from the public test Wordpress instance. Upon doing this and attempting to actions.source.fetch(‘home-post’) I constantly receive an error in my console that is presented as the name of this post: “ServerError: post type from endpoints “posts, pages, media” with slug “home-post” not found”.
My frontity.settings source url is “http://test.pritchardelectric.net.user.server296.com/”. I’m not using the wp-json appended considering I didn’t need to do this to receive data from my localhost wordpress instance. And I receive an error with that appended any ways (different error).
I’m viewing the network response, and am receiving an empty array from “http://test.pritchardelectric.net.user.server296.com/wp-json/wp/v2/posts?_embed=true&slug=home-post”
When I go to this url directly in browser I can see the expected json associated, which is weird I’m not receiving data back in the network response from the actions.source.fetch.
Not sure why this is working on local and not public. I have the same post name/permalink on public, and same permalink types set globally. I’m calling actions.source.fetch in a use effect within my Home.js component.
The repo is private. So please let me know if you have any questions. Thank you so much in advance.
WP Rest API URL is the site with /wp-json appended