• Resolved eddyj

    (@eddyj)


    Hi, I have created a site

    https://www.beheardantibullying.info/

    The menu navigation at the top are all Pages

    Now ive created a page called Help Now and in settings>reading set it as sticky frontpage

    I dont want it to appear as an item on the menu bar is there a way to exclude a page yet still have it appear as your frontpage static?

    thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Look at using the template tag, wp_list_pages(), and the exclude= argument.

    Thread Starter eddyj

    (@eddyj)

    Hi MichaelH thankyou I will go do that now and update you on how things go

    Thread Starter eddyj

    (@eddyj)

    It worked, thankyou my friend.

    Just for other peoples benefit. Basically you have to go into editor find the .php file probably header.php and then the part which says

    <?php $exclude = obwp_get_meta(SHORTNAME.’_exclude_page’); wp_list_pages2(‘title_li=&sort_column=menu_order&depth=0&exclude=X’.$exclude) ?>

    Now where i have put X is what you change for the number of the page

    to find the number of the page go to pages and mouse over the page link and you will see it

    HI Eddy, what if I have three pages I would like to exclude? how do I write it correctly? I dont know php

    Here is the code that worked a treat:

    <?php wp_list_pages('sort_column=menu_order&depth=1&title_li=&exclude=232,263'); ?>

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to Exclude Page from Menu Yet Have it Appear Frontpage Static?’ is closed to new replies.