Got it – just use this:
<?php $query = new WP_Query( array( 'tag__in' => $tags ) ); ?>
Related Posts:
- How to convert custom field value to tag
- Plugin to auto convert custom fields to tag
- Default WordPress taxonomy (Tag) – How to add a custom field to form and save it to the database
- Search in Archive Pages by subcategory, tag, custom field and year
- edit_tag_form_fields is depricated but tag_edit_form_fields doesn’t work
- Save all the post tags inside a custom field
- List custom queried terms in the edit-tags.php?taxonomy page
- Automatically Add Custom Fields Value as Tags
- ORDER BY custom field value
- Using wordpress post data as input for google visualisations
- Order posts by custom field and if custom field is empty return remaining posts
- Can serialized arrays in DB be matched against serialized arrays with meta_query?
- Create a select drop down of available menus
- Adding a prefix to a post title
- copy attachments to another post type and change attachment url
- Cannot edit post meta fields with rest API
- Only display custom field if it there is a value inside
- Slow meta query with multi meta keys
- Custom Field Multiple Clauses
- Add a post meta key and value only if it does not exist on the post
- Custom field values repeating
- Sorting posts by multiple values, combined
- Send Multiple Custom Field Values Through the URL
- $wp_query meta_key naming issue [closed]
- Meta_query and numeric comparison [closed]
- Separate table or usermeta
- Woocommerce with metabox plugin
- trim custom field text value and show (…)
- Duplicate posts being displayed when querying Custom Fields
- using multiple meta_key and meta_value in query_posts
- Json api does not return all metadata
- Use custom field as a variable
- ACF: How to get the full field name (meta_key) by a field key?
- How Meta Data is different from Custom Fields of POST/PAGE in WordPress
- global function to apply filter to custom field
- How to add a new meta key and assign timestamp to posts
- Print custom field in Query Loop block
- Is there a simpler version of WP Media?
- Order RSS content by an advanced custom field value
- Advanced search by two criteria – sort by location and date (ascending or descending)
- modify wordpress caption shortcode
- UPDATE on SELECT results. A SQL query to swap Author with Meta Box value
- Alter main archive, to show posts with meta as last
- Add microdata from schema.org [closed]
- Displaying multiple URLs as custom field values
- Collect user custom field in product page woocommerce
- How can I save custom meta to one global value?
- get posts where a custom field contains a text
- Displaying a custom field
- How to use media upload on metabox post page without breaking TinyMCE?
- Branch made by several custom values
- How can I activate custom fields checkbox in pages?
- User customising position of WordPress Featured Image
- Insert image into sub-field with update_post_meta
- How to use conditional statement with custom field
- Custom field php
- WP Insert post with post_thumbnail
- Custom meta boxes in RSS feed
- SQL: Select wordpress posts with given text string and add a custom field to them?
- how to add product subscription field in woocommerce plugin
- How can I change the publish date based on a custom field?
- Ordering by ‘Title’ OR ‘Custom Field’
- How can I add/update post meta in a admin menu page?
- pull all posts’ meta key values from current category only
- Is it possible to use get_post_meta() to control HTML?
- Editing custom fields for comments
- Getting and calculating averge value of custom fields of the same tag
- Add WordPress user custom meta to chartjs vertically stacked chart in Divi theme
- What am I missing in this Code Block?
- Making WP_Query limit results by date before today where date is a meta_query
- Shortcode for Custom Field of Media Attachment (to use with Featured Images)
- How to speed up post list slowed by update_meta_cache()?
- Custom Field URL + description
- submitting form to admin-panel.php returns 500 error
- Retrive acf fields in publish_post action for wp_mail
- Issue on Creating Checkbox Field On Custom Post type
- Update custom field on page specific to logged in user
- Outputting custom field on home.php not outside of blog list
- How to delete attachments associated with custom field type when post property changes? [closed]
- Get link picker custom field to show only if field exists
- Save input form on custom field
- I have a form with a custom button ,i want to add the field data to an database when clicking the custom button
- custom field images do not display until page save
- How to check custom fields from functions.php
- change attachment custom field onChange event
- Custom Meta Boxes and Fields for WordPress: Change directory upload based on user-edit page
- WP_query returns error when used for custom widget
- Get custom field from other post in carousel
- Form fields based on custom fields
- show custom field content in jquery tabs
- Create citation and url in post using 3 custom fields with conditions for each field… So close!
- woocommerce how in checkout to add my custom field check box, and when i check it hide the shipping adress and add tax 19% [closed]
- How can I attach files without using a plugin?
- Show only first image of multiple image field
- Change Fields of Comments and make them searchable?
- Custom Fields after update to WordPress 6
- Add CSS class to posts with certain meta key
- Match submitted array fields with the MYSQL database fields to update them correctly in PHP
- Best way for managing images of ads banners
- Crop custom image size vs actual size