Sort Posts by Custom Field Value In Genesis

Sort Posts by Custom Field Value In Genesis

Author: WP Sites

Date: March 1, 2020 

Category: Theme development, Tips and tricks, Tutorials

(advertorial)

wprssaggregator Sort Posts by Custom Field Value In Genesis

This category template enables you to order posts in any category or other taxonomy by the value of the custom field added to each post.

In this case, the value is a price added as a number as a custom field on the Edit Post screen and output with a dollar sign and commas on the front end resulting in posts ordered by price like this :

72831 end result Sort Posts by Custom Field Value In Genesis

All elements in this template are customizable including :

The entire loops WP_Query arguments

This is the first part of the original article by WP Sites.
Click here to read the full article in a new tab!

(advertorial)

toolset logo tag line white Sort Posts by Custom Field Value In Genesis

Sort Posts by Custom Field Value In Genesis

World of WordPress is hosted by:

Servebolt: next level high performance hosting.

While others try to add more components to their hosting to make it go faster, we decided to build our hosting cloud fast from the ground up. We did so by stripping out everything we knew was deadweight.