Excluding pages using the theme editor
-
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
- The topic ‘Excluding pages using the theme editor’ is closed to new replies.