ACF-field based custom sorting for posts in Elementor

[ad_1]

Hello everyone,

I’m currently displaying posts (Custom Post Type) in different kind of ways and one of the problems i’m having is displaying posts in a way in which it is sorted by the amount of upvotes. I made an upvote functionality with ChatGPT and it works fine. It adds +1 to my ACF field ‘upvotes’ or ‘downvotes’ when the user clicks on the button and in the back-end the product will display the amount of up- and downvotes respectfully.

The issue is that I can’t display the posts sorted by popularity. The only built-in options in Elementor for ordering are:

\- Date

\- Title

\- Menu order (?)

\- Last modified

\- Comment count

\- Random

I’m sure i’m not the only one with this idea and I was wondering if any of you found a way to properly display a top 10 of my Custom Post Type products.

Thank you.

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer