I know how to exclude a page from my sidebar by using the page ID:
<?php wp_list_pages(‘title_li=<h2>Pages</h2>&exclude=ID’ ); ?>
But is it possible to exclude multiple pages using a wildcard and the page title? e.g exlude all pages with titles starting with “Private” – such as “Private page”, “Private stuff” etc?
- The topic ‘Exclude page from sidebar using wildcard title?’ is closed to new replies.