How to show the same index list on a front end page?
-
Hi,
I have already searched the forum but did not found any solution. On the plugin page I found this:
“SHOW YOUR PAGES ON YOUR SITE IN THE SAME ORDER AS THEY ARE IN CMS TREE PAGE VIEW
To show your pages on your website in the same order as they appear in this plugin, you must
sort them by ?menu order“.// Example using query_posts
$args = array(
‘post_type’ => ‘page’,
‘orderby’=> ‘menu_order’,
‘order’=>’ASC’,
);
$posts = query_posts($args);// Example using wp_query
$args = array(
‘post_type’ => ‘page’,
‘orderby’ => ‘menu_order’,
‘order’ => ‘ASC’,
);
$query = new WP_Query( $args );”But I have no clue where to insert this code to get it run correctly.
Thanks
Fabian
- The topic ‘How to show the same index list on a front end page?’ is closed to new replies.