WP Residence Help WP Residence Help

  • WPRESIDENCE
  • Video Tutorials
  • Client Support
  • API
Home / Technical how to | Custom Code Required / Technical: How to change default order on Taxonomy page to alphabetical order

Technical: How to change default order on Taxonomy page to alphabetical order

4923 views 0

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' => 'prop_featured',
'orderby' => 'post_title',
'order' => 'ASC',

Make sure you write PHP, not copy/paste. So you don’t copy wrong formatting.

You also need to remove some ordering filters. – comment this line

$prop_selection = wpestate_return_filtered_by_order($args);

 

 

In templates \wpresidence\libs\help_functions_cards.php file change the label for key “0” .

 

 

Technical how to | Custom Code Required

Related Articles

  • Technical: Change the Schedule Tour Email Text and the Form Default Message
  • Property list filter customization
  • Technical – How to Change the Minimum Image Dimensions for Property Uploads in WPResidence
  • Introduction to WPResidence Header Customization

Help Categories

  • 18Agent, Agency & Developers
  • 5Blog Posts & Blog Lists
  • 38Elementor Shortcodes Built-In
  • 45FAQ
  • 15Footer
  • 5Getting Started
  • 37Header
  • 2IDX & MLSImport
  • 6Installation & Setup
  • 23Installation FAQ
  • 23Maps & Location Settings
  • 21Multi-Language Third Party Plugins
  • 6Other Third party Plugins
  • 19Pages
  • 4Payments & Monetization
  • 20Property Lists, Categories & Archive
  • 36Property Pages & Layouts
  • 31Search & Filtering
  • 162Technical how to | Custom Code Required
  • 8Technical: Actions and filters
  • 6Technical: Child Theme
  • 86Theme Options & Global Settings
  • 6Translations & Languages
  • 16WPBakery Shortcodes
  • 51WPResidence / WPEstate CRM
  • 50WPResidence 5.0 Documentation
  • 8WPResidence Elementor Studio
  • 50WPResidence Translate Plugin

Join Us On

Powered by WP Estate - All Rights Reserved
  • WPRESIDENCE
  • Video Tutorials
  • Client Support
  • API