include pages into the 2nd menu

Forums Forums Menus include pages into the 2nd menu

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #621
    hellysium
    Member

    Hi,

    How to include only certain pages into the 2nd menu (suckerfishnav_2)?

    Thank you!

    #5248

    Hi,
    It works the same way as it does for the first menu.

    If you include them in ‘Pages’ or ‘Pages (single dropdown’) then they will be removed from those dropdowns.

    There isn’t any way to use those menu items with two different menus and include seperate pages in each.

    To do that you would need to use the custom code option/s.

    #5249
    hellysium
    Member

    yes I used this in custom field but it didn’t work.

    <ul="suckerfishnav_2)">
    <?php wp_list_pages(‘title_li=&include=18,20’); ?>
    </ul>

    What am I doing wrong?

    #5250

    Is this what you put in the custom code field?
    [code:2cknipox]<ul="suckerfishnav_2)">
    <?php wp_list_pages(‘title_li=&include=18,20’); ?>
    </ul>[/code:2cknipox]

    The custom code is for HTML, not PHP.

    #5251
    hellysium
    Member

    Yes that’s what I pasted in the custom field <img decoding=” title=”Sad” />
    Actually is there way to view only certain pages in the 2nd menu with dropdown effect by using dynamic function (either it is pixopoint_menu() or <?php wp_list_pages(); ?>)?

    #5252

    This (with appropriate wrapper tags) would do it:
    [code:oxnxg855]<?php wp_list_pages(‘include=4,25,7’); ?>[/code:oxnxg855]

    #5253
    hellysium
    Member

    Thank you!
    I just thought that when I include parent pages, it will automatically include their descendants.

    #5254

    No, apparently not. To be honest I didn’t realise that until recently and was surprised when people started reporting back on that functionality.

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.