Support » Fixing WordPress » Query Post Order

  • Hi I have a query post on a page located here

    It retrieves child pages of a page that acts as a filter with the query post function..

    Am using flutter for the custom fields..

    There is a problem however as I do not seem to be able to sort the order of entries..

    I cant seem to find a plugin that can sort the order of pages with query post function..

    Is there a a way in which I can use flutter for this?

    Or am i best off recreating downloads in correct order..


Viewing 5 replies - 1 through 5 (of 5 total)
  • You should be able to modify the sort using a filter, but without more detail, it is not possible to be specific.

    What is your query? How would you like it sorted?

    Hi Here is a look at my loop..I have used the page order area within WP Cpanel to control order in conjunction with this from the ‘orderby’ => ‘menu_order’ parameter.. Here is code:

    <h2>Roplay Ball Data Sheet Downloads</h2>
    query_posts(array('showposts' => 100, 'post_parent'=> 47, 'post_type' => 'page', 'orderby' => 'menu_order'));
    while (have_posts()) {
    <a href="<? echo get('file'); ?>" target="_blank"><?php the_title(); ?></a><br />
    <?php }
    wp_reset_query(); //Restore Global Post data

    I got it:

    'orderby' => 'menu_order', 'order'=>'ASC'

    Just added these filters to query post function..Needed the additon of ‘order’ => ‘ASC’

    Thx for advice..much appreciated!

    Glad you got it! Now, please use the dropdown at top right to mark this topic ‘Resolved’.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Query Post Order’ is closed to new replies.