Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create dynamic page in wordpress and hide from menu

Tags:

wordpress

I have a wordpress plugin and i want to create a dynamic page when the user activates the plugin. Page creation is already done. But i want to hide it from the pages menu. No matter how wordpress is configured i want to hide the page.

Page can be only accessed using the url.

Can anyone provide me a solution for this.

like image 557
Rakhitha Nimesh Avatar asked Dec 03 '25 18:12

Rakhitha Nimesh


1 Answers

You can do it by assign a different value to post_type like dy_page

for more info see: Post_type and How to use Custom Post Types in WordPress 3.0

like image 187
Ehsan Avatar answered Dec 06 '25 11:12

Ehsan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!