• I’m trying to load post info from remote data source in WordPress.

    For example, when user accesses https://example.com/articles/hello-world, I want to capture the ‘hello-world’ post name, query my own data store (a REST API) to retrieve its detailed info, and render the content in WordPress post template.

    Please note that the ‘hello-world’ post in the above example does not exist in my wordpress database. I customized the singular.php file. However, the 404 page kicks in before my singular.php has a chance to run. My WordPress site complains that ‘hello-world’ does not exist.

    • This topic was modified 5 years, 10 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Load post from remote data source in WordPress’ is closed to new replies.