Title: Featured items always first
Last modified: October 12, 2021

---

# Featured items always first

 *  Resolved [slezaka](https://wordpress.org/support/users/slezaka/)
 * (@slezaka)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/featured-items-always-first/)
 * Is it possible to include the option to filter by title, date, rating in any 
   of the following updates, but so that the featured items will always be displayed
   first? For example, I have standard items with titles A, F, C and featured items
   with titles B, E, D. I would like to filter the items by title, with the featured
   items being the first. Result: B, D, E, A, C, F. And same result for filtering
   by date, rating…
 * In the current version of the plugin is possible to filter items by featured 
   status and sort them for example by title, but is not possible to add additional
   filtering by featured status and further sorting. For example:
 * Featured -> by title
    Featured -> by date Featured -> by rating …

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Stiofan](https://wordpress.org/support/users/stiofansisland/)
 * (@stiofansisland)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/featured-items-always-first/#post-14963137)
 * Hi [@slezaka](https://wordpress.org/support/users/slezaka/),
 * Yes, go to Places > Settings > Sorting.
    This is kind of like the WP Menu Screen
   where you can “nest” items.
 * So to get what you want, add the featured field and then add any fields you want
   under it as a sub item. You can add several sub sort fields at a time and you
   can add multiple main fields with different sub fields.
    Featured (change name
   to Title A-Z etc) – Title
 * I hope that makes sense, if not just let me know and I’ll make an example.
 * Thanks,
 * Stiofan
 *  Thread Starter [slezaka](https://wordpress.org/support/users/slezaka/)
 * (@slezaka)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/featured-items-always-first/#post-14963767)
 * Hi, thx for reply. I know i can nested them. But when i tryting to configure 
   sorting like:
 * 1. option: Feautured(desc) -> random
    2. option: Featured(desc) -> title(desc)
   3. option: Featured(desc) -> price(desc) 4. option: Featured(desc) -> post_date(
   desc)
 * It’s not working on frontpage. All fields in sorting list are marked like “active”.
 * Working configuration for example is:
    1. option: Featured(desc) -> random 2.
   option: Featured(asc) -> price(desc)
 * Not working configuration is:
    1. option: Featured(desc) -> random 2. option:
   Featured(desc) -> price(desc)
 * So i can’t add multiple descending main fields with different sub fields like
   you are writing. It is not working. I think there is problem with “active” class
   on frontpage. All main featured fields are marked as “active” in class. Probably
   it is bug.
 *  Plugin Author [Stiofan](https://wordpress.org/support/users/stiofansisland/)
 * (@stiofansisland)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/featured-items-always-first/#post-14963834)
 * Random can’t be mixed, it will trump anything, that’s a database limitation. 
   For price, is your price custom field set to display as a price? Can you link
   to your site?
 * Thanks,
 * Stiofan
 *  Thread Starter [slezaka](https://wordpress.org/support/users/slezaka/)
 * (@slezaka)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/featured-items-always-first/#post-14963946)
 * Problem is not with random. Same results with:
 * 1. option: Featured(desc) -> title(desc)
    2. option: Featured(desc) -> price(
   desc)
 * Everything is working fine, when i have only one sorting method or if first is
   ASC and second is DESC. When both main fields are DESC or ASC sorting is not 
   working.
 * [⌊gd⌉⌊gd⌉[
 * I have everything on localhost. But tommorow i can prepare live version for testing.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Featured items always first’ is closed to new replies.

 * ![](https://ps.w.org/geodirectory/assets/icon-256x256.jpg?rev=2778361)
 * [GeoDirectory - WP Business Directory Plugin and Classified Listings Directory](https://wordpress.org/plugins/geodirectory/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/geodirectory/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/geodirectory/)
 * [Active Topics](https://wordpress.org/support/plugin/geodirectory/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/geodirectory/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/geodirectory/reviews/)

## Tags

 * [featured](https://wordpress.org/support/topic-tag/featured/)
 * [filter](https://wordpress.org/support/topic-tag/filter/)
 * [sorting](https://wordpress.org/support/topic-tag/sorting/)

 * 4 replies
 * 2 participants
 * Last reply from: [slezaka](https://wordpress.org/support/users/slezaka/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/featured-items-always-first/#post-14963946)
 * Status: resolved