Where do i place the code in sidebar to remove pages?
-
Hi,
Id like to remove the pages from my sidebar. I have found this piece of code but it doesnt say where to place it. I tried adding it to the sidebar.php and it gave a parse error, i must ahve put it in the wrong place ?? Can anyone help me?
Exclude Pages from List
To exclude certain Pages from the list, for instance, Pages with ID numbers 17 and 38, use the exclude argument.-
<?php wp_list_pages(‘exclude=17,38&title_li=<h2>’ . __(‘Pages’) . ‘</h2>’ ); ?>
Note: Page numbers must be in ascending order (ie : exclude=17,38 and not exclude=38,17).
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Where do i place the code in sidebar to remove pages?’ is closed to new replies.