WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] how to exclude page using wp_list_pages in Photocrati Them (3 posts)

  1. united79
    Member
    Posted 3 years ago #

    Ok so here's my story. I've downloaded plugins "Exclude Pages" and "IM8 Exclude Pages" to no avail. I followed the instructions and the checkbox never showed up. Did lots of research and found that many others with similar problems using these plugins never got their questions answered.

    So i went to plan with plan B and I've learned that I can exclude pages using wp_list_pages function. The ony problem is that I cant find it! Im using the Photocrati theme and have looked through all the php's and nothing. Now, im new to WP so pardon my ignorance but do I have to add the code myself? I have found the code that I need to modify and I also know my page id. It is the following:

      <?php wp_list_pages('exclude=222' ); ?>

    But I dont know where it goes? header.php? page.php? or what?

    any help is so appreciated because i've been at it for 3 days now just to learn how to get rid of a page. Pretty frustrating.

    Thanks much!!

  2. Samuel B
    moderator
    Posted 3 years ago #

    normally it would be in theme's header.php
    I would assume it's there if you already have pages being automatically added

    alternately, have you looked in
    dashboard - appearance - menus
    to see if your theme supports menu creation
    if so, you can quickly create one that you can exclude/include whatever you want

  3. united79
    Member
    Posted 3 years ago #

    Samuel, you're the man!!!! thanks so much...works great

Topic Closed

This topic has been closed to new replies.

About this Topic