0

I have a page that solely exists to display search results from a different search page. I am creating a plugin and need to make sure when the plugin is activated and pageA and PageB are created pageB doesn't appear in the top-level menu or any menu if possible. Ideas?

  • It's possible to do this without any pages at all using rewrite rules – Tom J Nowell Aug 29 at 20:30
  • Have you tried register_post_type() for the page you do not want on a menu? Or, are you using a standard page? – Mike Baxter Aug 29 at 20:34
  • It's currently being created as a page but I COULD create a custom post type and hide it that way. I'm a noob so any advice on best practice is appreciated. – Matthew Brewer Aug 29 at 20:43
  • @TomJNowell Got an example? – Matthew Brewer Aug 29 at 20:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.