• Resolved gmrtech

    (@gmrtech)


    Simple question. I want to exclude a page. So I searched and found how to exclude them, but I’m not exactly sure where to paste the code in my header.php file (presentation>theme editor>header.php)

    Here’s the original code

    <?php wp_list_pages(‘sort_column=menu_order&depth=1&title_li=’); ?>
    <?php wp_register(‘<li class=”admintab”>’,’

    ‘); ?>

    </div>

    <hr />

    and wordpress says to put this in (where the ID’s would be different of course):

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

    So should it look exactly like this?

    <?php wp_list_pages(‘exclude=17,38’ )(‘sort_column=menu_order&depth=1&title_li=’); ?>
    <?php wp_register(‘<li class=”admintab”>’,’

    ‘); ?>

    </div>

    <hr />

    I’m new to php, and I know how sensitive these files are. So thanks so much in advance!

    All good things -gmr

Viewing 1 replies (of 1 total)
  • Thread Starter gmrtech

    (@gmrtech)

    EDIT:

    DO NOT REPLY

    I FIGURED IT OUT

    DO NOT REPLY

    I love wordpress, getting new to this php stuff – its very fun (and crazy at times) to learn!

    thanks! -g

Viewing 1 replies (of 1 total)
  • The topic ‘Excluding pages using the theme editor’ is closed to new replies.