Tech Tip Tuesdays: Output a list of pages that includes/excludes pages based on their title

Hello and welcome to our first Tech Tip Tuesday, MIGHTYminnow’s very own tips & tricks series. Stay tuned for more…

WordPress’ native wp_list_pages() function is great for doing just what it sounds like – outputting a clean list of pages with one line of code – but sometimes we need to do more.

The following code goes in your theme’s functions.php file and can be used to output a list of pages, in which pages are included or excluded if their title contains a specified “test string.”

Leave a Reply

Your email address will not be published. Required fields are marked *