I want to modify WordPress so that it requests content from a function if content is not found in the database.
I want to edit the section of the code which requests and returns the post content from the database so that: if it does not find the content in the database, it calls and gets the content from my function, instead of returning null/not found. I am not sure where this section of the code is or how to go about changing it.
I can write a set of functions which return the title/body/excerpt/tags/etc… when give the post id not found in the database. Please help me in finding who/where to make this edit.
- The topic ‘Load posts from external source if not found in database’ is closed to new replies.