Tag Info

New answers tagged


I'm not sure why you use the sort_column parameter, it's not supported by the WP_Query() class. According to the Codex, the correct way to sort, is to use the order and orderby parameters. Please try this: $args = array( 'post_type' => 'page', 'orderby' => 'menu_order', 'order' => 'ASC', // ...


There is a fix coming up for the same, here is the ticket: https://core.trac.wordpress.org/changeset/27755 In case you need it urgently, you can give this a try Original Answer by @goldenapples, here is the link: Dynamic navigation for custom post type (pages) function wp_list_post_types( $args ) { $defaults = array( 'numberposts' => -1, ...

Top 50 recent answers are included