Pro Theme Design Forum » Mimbo Pro » Technical Help

Exclude pages from navigation

  • Started 11 months ago by Allpa
  • Latest reply from Ben
  • This topic is not a support question

  • Allpa
  • Member
  • Posted 11 months ago #

Hello :)

How to exclude separate pages from the navigating panel (I use Main Navigation: Pages)?

I have read here http://codex.wordpress.org/Good_Navigation_Links
___________
Use the exclude parametre to hide certain Pages from the list to be generated by wp_list_pages.
-----------------

    <? php wp_list_pages (' exclude=17,38 ');?>

___________

But I do not know, how this parametre to use! Into what file of a template it to insert? In what the place is concrete?

Help to understand, please :)

  • darren
  • admin
  • Posted 11 months ago #

So you don't have to touch the core Mimbo Pro files, I would recommend using a plugin for this issue. Example -

http://wordpress.org/extend/plugins/exclude-pages/

  • Allpa
  • Member
  • Posted 11 months ago #

While I waited the answer, have a little studied the documentation wordpress...
And in a file header.php has inserted a code →
-----------------
' sort_column=menu_order&depth=1&title_li = AND exclude=1,2,4'
-----------------
Instead of ' title_li = ' in parametre wp_list_pages (' title_li = ');

All perfectly works - hurrah!

Certainly, to change options by means of a plug-in it is much easier - thanks you for council and the link!

  • Ben
  • Ben
  • Posted 11 months ago #

Hi Allpa - well done working out the answer :) Glad you got a working result. Perhaps you could use the plugin when you upgrade the theme in the future.

Reply

You must log in to post.