rambi70
Forum Replies Created
-
Ok, thanks bemdesign I will have a look at this. Indeed I need a testbed for it anyway. It is quite difficult to pick one approach while it always has good and bad points
RemcoForum: Fixing WordPress
In reply to: Show number of posts based on Conditional CategoriesHi,
Did you succeed in doing this? I have more or less the same issue.
I have a taxonomy of contract types of properties, like properties for sale, properties for rental, properties for…All of these properties have a taxonomy of locations. I can retrieve a list of locations but I would just display the locations of each contract type when there are properties in that location.
Just curious how you solved this. If you did not find a solution I will post my solution here when I have one.
🙂
I still have not made any progress to do this. I hope somebody can point me in the right direction.
When I get the solution I will post it here as well. 🙂
Thanks,
RemcoForum: Fixing WordPress
In reply to: Query not sorting on meta_value fieldIt is fixed.
$properties = array( 'post_type' =>'dt_properties', 'posts_per_page' =>$post_per_page, 'paged' =>$paged, 'tax_query' =>array(), 'meta_query' =>array(), 'orderby'=> 'meta_value_num', 'meta_key' => '_property_price', 'order' => 'desc');Forum: Fixing WordPress
In reply to: How to get an ordered list of properties based on price by $wp_queryI have fixed it:
$properties = array(
‘post_type’ =>’dt_properties’,
‘posts_per_page’ =>$post_per_page,
‘paged’ =>$paged,
‘tax_query’ =>array(),
‘meta_query’ =>array(),
‘orderby’=> ‘meta_value_num’,
‘meta_key’ => ‘_property_price’,
‘order’ => ‘desc’);Forum: Fixing WordPress
In reply to: How to get an ordered list of properties based on price by $wp_queryHi Janet,
The website is still under construction so it will not be accessible for the moment. It is just displaying the search results in the order by which I have entered them. Apparantly it is not assessing the _property_price field at all in the query.I am sure the field where the prices are set is _property_price.
Thanks,
Remco