Posted By

ToddSmithSalter on 03/15/11


Tagged

wordpress wplistpages


Versions (?)

List all pages excluding the current one


 / Published in: PHP
 

This lists all the pages that are "Published", excluding the current one. Useful for a sitemap template.

  1. global $post;
  2. wp_list_pages("exclude=$post->ID&title_li=<h2>" . __('List of Pages') . "</h2>");

Report this snippet  

You need to login to post a comment.