Creating a post when it does not exist
-
Hi chaps,
I have setup wordpress to retrieve posts using the %post_name% PERMLINK, I would now like to create a plugin that will create a post when it does not exist. For example,
– user requests https://domain.com/does-not-exist
– on the back end, I create an empty post titled ‘does-not-exist’ which is then returned to the user.I’m pretty new to wordpress, and although I understand how actions/filters work, I can’t see an elegant solution to this.
If you have any ideas how I could do this quickly and efficiently, please share.
wes
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Creating a post when it does not exist’ is closed to new replies.