NooTheme Premium WordPress Theme › Forums › Palazzo › Order by does not work
- This topic has 9 replies, 2 voices, and was last updated 2 months, 2 weeks ago by
dangdv.
-
AuthorPosts
-
3 months, 2 weeks ago #1208503
Hi, i just noticed that Order by does not work anymore on my site.
3 months, 2 weeks ago #1208504This reply has been marked as private.3 months, 2 weeks ago #1208544Dear, I see that problem because you use custom file 'page-archive-property.php' in child theme, i have fiexed it on your site, please check your site again.
Best regards.
3 months ago #1209026ok, thanks
2 months, 3 weeks ago #1209197Hi i have another question.
On this page: https://5thavenueimmobiliare.it/offers/immobili-in-vendita/
i want to set the custom order by order to "price" in Decreasing.
let me know how i can do it.
Thanks
2 months, 3 weeks ago #1209212Dear, the theme not support custom order properties for specific page. If you want custom order for all properties archive page, please add custom code in file functions.php of your theme.
add_filter('rp_get_property_query_args', function( $query_args){ $query_args['orderby'] = "meta_value_num meta_value"; $query_args['order'] = 'DESC'; $query_args['meta_key'] = 'price'; return $query_args; });
Best regards.
2 months, 3 weeks ago #1209222ok, thanks a lot.
I still have one question. I have some houses that have no price because the price is given only to seriously interested people. I need that these houses with no price show up firs when i set order by: price Decreaseing.
This is very important for me.
2 months, 2 weeks ago #1209248Sorry, because it not have price, so it the query can't order it to first,
2 months, 2 weeks ago #1209262and there is no way to change that? Like with some code or some css?
Thanks
2 months, 2 weeks ago #1209282Sorry, no way to change it because it use SQL query compare price to order but if not price, it can't compare.
Best regards.
-
AuthorPosts
You must be logged in and have valid license to reply to this topic.