Technical: Custom Order

Custom Order for Recent Items Shortcode

Recent items shortcode which is defined in plugins/wpresidence-core/shortcodes/shortcodes.php You have to do 2 edits: 1. Change order 2. Remove the custom order we have in place (for featured first, and by publish date next) This is a similar example http://help.wpresidence.net/article/order-by-edit-date/ but you have to change the order as you desire

How to change default order on Taxonomy page to alphabetical order

This example is for how to change from Default order to alphabetical order to Low on Taxonomy pages- standard view: In taxonomy.php file Look for ‘meta_key’ => ‘prop_featured’, ‘orderby’ => ‘meta_value’, ‘order’ => ‘DESC’, Replace with //’meta_key’ => ‘post_title’, ‘orderby’ => ‘post_title’, ‘order’ => ‘ASC’, Make sure you write PHP, not copy/paste. So you don’t […]

How to change default order on Taxonomy page

This example is for how to change from Default order to Price High to Low on Taxonomy pages- standard view: In taxonomy.php file Look for ‘meta_key’ => ‘prop_featured’, ‘orderby’ => ‘meta_value’, ‘order’ => ‘DESC’, Replace with ‘meta_key’ => ‘property_price’, ‘orderby’ => ‘meta_value_num’, ‘order’ => ‘DESC’, Make sure you write PHP, not copy/paste. So you don’t copy […]

Advanced Search Results Ordered by Price

I want to ask how can sort the results of the advanced search page, ordered by price is my goal. —answer— Instruction after 1.10 theme update In this case the place to edit is searchfunctions.php at line 307 ‘meta_key’ => ‘prop_featured’, ‘orderby’ => ‘meta_value’, ‘order’ => ‘DESC’, Also in advanced_Search_results.php you may need to remove […]

Order by EDIT DATE

In wordpress there are 2 order situations by date: – first publish date – edit publish date We use order by first publish date and edit date is not considered. So default order will consider the first publish date. The technical solution is to modify the query orderby, but it’s sensitive when working with custom […]

Custom Order for Taxonomies / Categories

There is a plugin that has more sorting options and allows you to order in which order you wish: Custom Taxonomy Order NE – https://wordpress.org/plugins/custom-taxonomy-order-ne/ Short example about how to use this plugin Open TERM ORDER settings and select the taxonomy you wish to change order for Set your custom order and save This will apply […]

How to change agents order on agent list page

Agents are listed by publish date. Most recent are listed first. Change publish date to change order. To change order in code and make agents go alphabetically, go to agents_list.php Instead of $args = array( ‘cache_results’ => false, ‘post_type’ => ‘estate_agent’, ‘paged’ => $paged, ‘posts_per_page’ => 10 ); Add 2 more options: orderby and order […]