Ordering Services

This support request was posted in Paeon by michaelsimpson

Request ID #2734 Resolved
  • Hi,

    Sorry for the trouble again but i was wondering if there is a way i can order the services displayed on the service page?

    At the minute they appear to be displayed by published date but i would like them to be done by attribute order / menu order.

    I see there is some code in the services.one-column template:

    $args = array(
    ‘post_type’ => ‘service’,
    ‘posts_per_page’ => -1,
    ‘no_found_rows’ => true,
    ‘paged’ => $paged,
    ‘orderby’ => ‘menu_order’,
    ‘order’ => ‘ASC’
    );

    query_posts( $args );

    but it is not sorting it by menu_order.

    Any help is appreciated.

    Hi Michael,

    Thanks for writing. Actually the script was done having the premise that the items should be ordered by the Menu Order (the one that you select when you’re creating each Service Item).

    Are you using any cache plugin or similar?

    Best,
    Juan.

    Hi Juan,

    No, I’m not using any plugins to do anything like that.

    I’ve simply adjusted the publication dates in an appropriate way so they are listed as required to get around it so feel free to close this ticket off if necessary.

    Hi Michael,

    Thanks for your response and letting me know about the fix.

    Have a nice day,
    Juan.

Viewing 4 posts - 1 through 4 (of 4 total)

This topic is marked as resolved

Only the topic author can re-open this thread.

Login to your Account

Welcome back! Please log in to your account by filling the fields below:

Forgot?

Not a member? Create a free account.

Create a Free Account

You're 27 seconds away from some awesome WordPress free stuff, benefits and more. Create a free account and have access to our free products, benefits and more!

Already have an account? Log in
Secure Server