Support » Plugin: CMS Tree Page View » How to show the same index list on a front end page?

  • halfstone1

    (@halfstone1)


    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

Viewing 1 replies (of 1 total)
  • So me

    Sorry that makes no sense and it destroys the advantage.

    Please answer to that thread or better update your description

    the best: please apply that code directly into the plugin.

    regards Klaus

Viewing 1 replies (of 1 total)
  • The topic ‘How to show the same index list on a front end page?’ is closed to new replies.