Ordering Services
This support request was posted in Paeon by michaelsimpson
- michaelsimpson December 12, 2013 at 3:08 pm
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.
Juanfra Aldasoro December 12, 2013 at 3:16 pmHi 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.michaelsimpson December 13, 2013 at 2:20 pmHi 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.
Juanfra Aldasoro December 13, 2013 at 2:23 pmHi Michael,
Thanks for your response and letting me know about the fix.
Have a nice day,
Juan.
This topic is marked as resolved
Only the topic author can re-open this thread.