Skip to content

Instantly share code, notes, and snippets.

@theodorocaliari
Created October 29, 2013 13:49
Show Gist options
  • Save theodorocaliari/7215013 to your computer and use it in GitHub Desktop.
Save theodorocaliari/7215013 to your computer and use it in GitHub Desktop.
listing pages WP
<?php
function list_pages(){
//http://codex.wordpress.org/Function_Reference/wp_list_pages
//lista as paginas criadas no wordpress
$args = array(
'title_li' => __( '' ),
'sort_column' => 'menu_order, post_title',
'exclude' => '2,5,6,7,8,9',
'post_type' => 'page',
);
?>
<div id="access">
<div class="menu">
<ul id="menu-menu-principal" <?php post_class('sf-menu'); ?>>
<?php
wp_list_pages($args);
?>
</ul>
</div>
</div>
<?php
}
add_filter('thematic_header', 'list_pages');
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment