Answer by gmazzap for Custom pages with plugin
When you visit a frontend page, WordPress will query the database and if your page does not exist in the database, that query is not needed and is just a waste of resources. Luckily, WordPress offers a...
View ArticleAnswer by david.binda for Custom pages with plugin
I once used a solution described here: http://scott.sherrillmix.com/blog/blogger/creating-a-better-fake-post-with-a-wordpress-plugin/ Actually, when I was using it, I extend the solution in a way I can...
View ArticleCustom pages with plugin
I'm developing some plugin where I would like to enable custom pages. In my case some custom page would contain a form like contact form (not literally). When user will fill out this form and send it,...
View ArticleAnswer by inf3rno for Custom pages with plugin
A lot simpler solution is automagically adding the page if it does not exist. We can use a custom meta key to check its existence. We can do callback in the the_content filter if the current id is the...
View Article