• Resolved jcdjcd79

    (@jcdjcd79)


    I’m using WordPress 2.9.2 and my theme is StudioPress_Red. I really want to hide some pages but the problem is I can’t seem to find the “<?php wp_list_pages();?>” code. Could you please tell me what to edit in this certain theme so I could make the hide pages hack work. I tried Exlude Pages and Advace Category Excluder plugins but they don’t seem to work in this theme…

    StudioPress_Red

Viewing 13 replies - 16 through 28 (of 28 total)
  • Afterburn theme is free. here is the link
    https://www.rockettheme.com/wordpress/?theme=afterburner

    can you please help me out.

    @sandesh

    goto functions.php file and search this rok_old_menu() function (line no 56). There you will get wp_list_pages('echo=0&title_li=&link_before=<span>&link_after=</span>');

    Now you will add exclude parameter.

    At which point to add ‘exclude’ parameter in the line? Between which words?

    Hi again,
    Do u mean u put

    exclude=10,20…

    in that line with proper page ids?
    i can’t find out the page id here. How to find the page id for some particular page.
    if i’m getting it right.

    Hi again,
    Do u mean to put

    exclude=10,20…

    in that line with proper page ids?
    i can’t find out the page id here. How to find the page id for some particular page.
    if i’m getting it right.

    ADMIN->POSTS->EDIT POST of a particular post you will get page id. If page id is 10,12,16. ex.

    wp_list_pages('echo=0&title_li=&link_before=<span>&link_after=</span>&exclude=array(10,12,16,20)');

    i did ADMIN>POSTS>EDIT POST. But there is no sign of page id.
    HOw come? Is the ‘page ID’ is in particular POST or in EDIT PAGES?
    i don;t find in either of them.
    i wanna try this ‘edit at function.php’ to hide one page in my site desperately.

    sorry it would be ADMIN>PAGES>EDIT PAGE

    Moderator James Huff

    (@macmanx)

    When you click to edit a post/page, you’ll notice that the URL ends with something like /post.php?post=123&action=edit . In this example, the post/page ID is 123 .

    yes 123 is page id.

    YES, and it worked. Thank you chinmoy, thank you james.
    Now i’ll have to keep adding page ids whenever i need to hide a new page.

    Moderator James Huff

    (@macmanx)

    You’re welcome!

    I would be adding a “and ID != “x”” to the code?

    yes – with the proper spacing
    strange the 1st didn’t work, but glad you got it

    This solved the non-standard theme menu problem and I can now manually exclude pages.

    Thank you Samuel B. and everyone ??

Viewing 13 replies - 16 through 28 (of 28 total)
  • The topic ‘Can’t hide pages’ is closed to new replies.