I found the solution. Here is it:
add_action( 'elementor/query/acf_filter', function( $query ) {
$filtre = get_field( "category_filters" );
$query-> set('cat' , $filtre );
} );
Related Posts:
- How to rename a custom field?
- How can I make wp-pagenavi work on a custom query built upon a form submission? [closed]
- Meta Query with AND & OR?
- Plugin similar to Taxonomy Drill-Down for custom fields?
- How do I query for a post by custom field?
- Count how many posts have a custom field set
- Upcoming Event: How do I sort database by custom date field, but ignore past dates?
- sort search results by custom fields using dropdown
- How can I sort homepage by a meta value?
- Loop to display random posts only if a custom field matches category
- Conditional custom field query
- Display only past events on that page using Visual Composer Grid Bulider
- Custom Field Create Bulk via SQL Query
- Create Pop-Up Box with Custom Field Content Inside the Loop
- query usermeta from custom field
- Is there any way to get all meta and standard columns for any WordPress object after searching based on meta key and value
- Order RSS content by an advanced custom field value
- Alter main archive, to show posts with meta as last
- Trying to reorder posts by custom field
- Limits, not all post are showen when querying for posts by view count
- Why orderbyb meta_value_num won’t affect the generated SQL Query order?
- Get post ids sorted by meta_key
- querying a custom field
- pre_get_posts : only get posts by wp_usermeta value
- Query post by date (stored custom field meta as yyyymmdd) and differentiate across 12 months
- How to query an out put value?
- List custom queried terms in the edit-tags.php?taxonomy page
- Modify date query by URL parameter using pre_get_posts and $_GET
- Loop through incrementing custom fields
- Custom search SQL Query to add custom field in result
- The best way to collision check in WP
- How to exclude custom fields from search queries?
- WP_Query () using taxonomy, custom post types
- How to query for posts with either one or another custom field
- Best way to sort estates and query them (for rent? yes/no. contains office space? yes/no)?
- Custom Query: query by post custom meta data
- Get array of posts based on custom field values
- Searching with Multiple (Parallel) Criteria on Custom Fields?
- How to query posts by month based on date custom field?
- Custom Field Date Problem
- Compare ACF date field (if exists) and post date and order DESC
- Problem with revisions only returning four results
- Search & column order by meta value in admin
- searching by keywords in post’s metas or pagination links problem
- select user with all meta field and field value. I am use Below Query for this ,So any of know another way to fast query instead of below query?
- Create custom query for search?
- query specific posts according their custom fields, using sql SELECT
- Meta_query not filtering posts
- Get multiple posts with some custom fields efficient
- How to add a prefix to existing custom fields over MYSQL query?
- Complex WP_Query Using Post Date And Post Meta
- How to check if custom field exists in this widget query
- Only show content slideshow if “slideshow” custom field exists
- How to display search query as formatted text?
- Remove Dimension from wp_get_attachment_image
- add meta box – custom field : which to choose?
- Show links to archive pages based on custom field values
- Storing meta fields multiple times OR once with multi dimensional array?
- checkbox in post add/edit to add/remove the post from menu
- Custom Fields Bulk Edit
- Custom Page Template [closed]
- Using OR in WP_Query negates the “NOT EXISTS” compare
- How to add a predefined custom field without using a plugin?
- How to enable Custom Fields that are disabled by theme?
- Create new post with meta data using WordPress API
- WPML & CFT: keeping custom field file to translation
- How to make condition, based on custom fields value?
- How do I Implement Atomic Update of Post Metadata?
- Order by empty custom field
- Want to make A CSS if meta key value is empty
- Add & store extra fields – WordPress Comments
- Outputing a metabox textarea and avoid line breaks inside li tags
- Restrict WordPress Search to Custom Field
- How to add a custom field to a post created programmatically?
- Problem with saving large amount of data in postmeta/usermeta
- How to get posts with a metadata numeric key greater than X?
- List all unique custom field values?
- “Matching” or “Linking” Two WordPress Pages: Custom Fields?
- Meta_query ‘compare’ => ‘LIKE’ not working?
- Get text from user and display it on page
- shorthand syntax for custom fields
- Upload & include specific JavaScript files for posts?
- Custom meta boxes not saving
- help for user login
- Display Meta Data with HTML?
- How to store meta field values
- Order by custom date field
- Group Posts By Custom Meta Value: Date
- Custom Field: how to save array of multiple key-values in WordPress
- How can I detect user’s timezone?
- Sort by an ACF field in a tax_query
- How do I display an article using a WordPress custom field?
- Query Multiple meta
- Show message if statement is false – foreach
- Order by custom field in query multiple
- Returning website screenshot based on Custom Field
- Filtering posts by WORD in custom field
- Cannot Hide Google Map if custom field is blank
- Set new url from custom post field
- Set post status to draft after validating post meta values in save_post hook