Order Loop Grid by Custom Field #22156
Replies: 29 comments 19 replies
-
Fully agreed with @GwendleWeb. There's another plugin called Advanced Post Queries that's supposed to let you sort loop grids by Advanced Custom Fields, which would address this need. But as of the latest version 1.1.1 released around May 17, it's crashing my Elementor-hosted site (running WordPress 6.2.2 and Elementor & Elementor Pro 3.14.0-cloud2). I filed a support ticket two weeks ago, but no response yet, which highlights why this functionality should be built into Elementor and not handled by a plugin. |
Beta Was this translation helpful? Give feedback.
-
I end up writing custom query filters in PHP to sort posts by different ACF values. I expect to write filters for more complex query rules, but it's a pain to add code for something as simple as sorting on a given field. |
Beta Was this translation helpful? Give feedback.
-
This would be awesome! |
Beta Was this translation helpful? Give feedback.
-
Being able to easily sort a loop grid by ACFs - i.e. the date picker field, combined with the options of filtering past/upcoming dates, and filtering by year would make the new loop grid incredibly powerful and finally move on from the last remnants of WP's "blogging" legacy. Same as @GwendleWeb, we are building websites for musicians, bands and venues who have the need to display custom concert calendars that sort by performance dates, not post dates. The need for custom queries makes this endeavour pretty clunky when it could be much easier. |
Beta Was this translation helpful? Give feedback.
-
This is HUGE for me. I have a site right now that needs this feature in about 6 different places, and since I'm not comfortable with writing my own queries, I'm having to pay a developer to do so. What I'm looking for is twofold:
I'm sure I can come up with additional uses, but these two are enormous for me! |
Beta Was this translation helpful? Give feedback.
-
+100 ... Currently the loop queries are very, very limited. Adding custom fields support for both filtering and sorting will really 'unlock' this feature and make it a really powerful tool. |
Beta Was this translation helpful? Give feedback.
-
This code sort posts by acf field in the query with "query_id" id.
Work fine with date field. https://developers.elementor.com/docs/hooks/custom-query-filter/ |
Beta Was this translation helpful? Give feedback.
-
I often am comparing the perks of builders and this feature is what makes Webflow CMS win- the ability to specifically define sorting, as well as the ability to hide or show something based off of a custom field being filled in! |
Beta Was this translation helpful? Give feedback.
-
I would also find this super useful!! |
Beta Was this translation helpful? Give feedback.
-
Absolutely a needed feature! But even much more so is to have a front-end option to let visitors choose the sorting option! Be it via dropdown menu or radio buttons. It's mystery to me why the devs left out such an important feature for loop grids. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I'm currently using the plugin "Advanced Queries" for this, but yes, that should be an Elementor feature. |
Beta Was this translation helpful? Give feedback.
This comment was marked as disruptive content.
This comment was marked as disruptive content.
-
Can you guys focus on what you have to enhance these functionalities instead of rolling out in new updates half finished features? This is driving me crazy... You always promise to add improvements later on but never deliver. |
Beta Was this translation helpful? Give feedback.
-
True to an extent also with the Elementor widgets. Again and again I'm bewildered about how half-baked these were put into production. Many widgets also require custom CSS out of the box to look half-way decent (i.e., professional). |
Beta Was this translation helpful? Give feedback.
-
100% need this - being able to manually order or set a priority on items seems like a basic necessity, at least in the e-commerce space. |
Beta Was this translation helpful? Give feedback.
-
I'll add my "me too" - this is DEFINITELY a needed feature and seems so basic that it begs the question "Why isn't this in Elementor already?" Elementor is a great plugin and the dev team does awesome work. Would like to see this feature as soon as possible. |
Beta Was this translation helpful? Give feedback.
-
Use case: Team members custom post type loop grid requires a custom order (either by custom field or backend custom post order). |
Beta Was this translation helpful? Give feedback.
-
That would be very useful! |
Beta Was this translation helpful? Give feedback.
-
I am using ACF, Advanced Queries and WooCommerce, and the Elementor Pro Loop Grid. If you want to have custom order query (and probably other Advanced Queries functionality) with WooCommerce Products:
Hope this helps someone. |
Beta Was this translation helpful? Give feedback.
-
+1 |
Beta Was this translation helpful? Give feedback.
-
I was able to show loop items in my specified order like this: Then inside each post under "Page Attributes" inside "Order", just add your numbers for each post, ,1 ,2 ,3 etc. And then inside Loop Grid Settings, under "Order by" use "Menu Order". |
Beta Was this translation helpful? Give feedback.
-
Any news about this? :/ |
Beta Was this translation helpful? Give feedback.
-
+1 from me also ... sad that it's an issue that's been discussed here for so long and no response from the Elementor guys. Ho-hum ... an up-vote from me for this. |
Beta Was this translation helpful? Give feedback.
-
@nicholaszein any hope you can give us on this? Possible this is in the pipeline? |
Beta Was this translation helpful? Give feedback.
-
I could really use this feature as well! |
Beta Was this translation helpful? Give feedback.
-
Does anyone have a problem to query by current query recently? |
Beta Was this translation helpful? Give feedback.
-
Prerequisites
What problem is your feature request going to solve? Please describe.
Currently you can only order the loop grid using 6 set options (Date, Title, Menu Order, Last Modified, Comment Count, Random) this is ok for a standard blog but if you're using the grid to display custom post times with custom fields you are really limited.
Eg I am creating a dynamic gig list for a band, I have a custom post type for events which includes a custom field for the date of event. I need to display the gigs in a list ordered by this custom date field. As the gigs can be created in advance and published at a random date that is different to the date of the gig you cannot use the post date to correctly order the list. Menu order is not available for posts. A work around is to carefully set the title of each gig post to reflect the event date however as the event date is already set up in the post it would be much more convenient to pull that field through for use in the query.
There are other situations where being able to order posts by custom fields would be really useful such as a real estate website if you wanted to be able to order properties by price, a walking website where you want to order the walks by length etc
Describe the solution you'd like
The loop grid query allows you to order by a custom field
Describe alternatives you've considered
No response
Additional context
There is a plug in called post types order which you can install that lets you drag and drop to order your posts but the fewer plugins you need the better and this would be really time consuming if you have a massive list of posts and need to change the order.
Beta Was this translation helpful? Give feedback.
All reactions