you can set the meta like this
'meta_query' => [
'key' => 'tag_iniative',
'value' => [182,183],
'compare' => 'IN',
]
Related Posts:
- How to query serialized array by comparing greater than (>=)?
- Possible to create a permalink to sort with meta_key?
- Working Bootstrap Carousel Conversion to WP – Technical Questions
- Exporting Data from WordPress into a flat table
- What Is meta_id In wp_postmeta?
- Query posts by Author and/or by Tag
- How to mark only one post as Featured post?
- Get post by two meta key but order by one of them
- Mix post date with post meta value using WP_Query
- WP_Query to get posts in a specific tag or has post_format
- How to create frontend Post filter using meta query
- Advanced Post Display/Pagination/Ordering
- Add custom Attachment Display Setting for images
- Rewriting post slug before post save
- Removing filter dropdown in posts table (in this case Yoast SEO)
- Getting the post_id in wp_ajax function
- Show related posts by category but ignore one category
- Replacing all attachment links in post with media file link
- Change the default number of posts to show on mobile version
- Post content being duplicated by the_content();
- How can I pass $post object to ‘save_post’ add_action?
- Disable REST API for a user ROLE
- Insert posts in two tables
- How To Keep Posts from Being Displayed Two or More Times on My Homepage? [closed]
- custom wordpress post loop – hide iframe content
- Add custom field automatically (add_post_meta) with value based on number of words of article
- How to access featured image?
- previewing my posts on static page?
- How to retrieve the postID in a “image_send_to_editor” hook function?
- Post revisions disappeared (for some posts)
- Replace ‘published on date’ with ‘modified on date’ on Posts
- How to display category from recent posts?
- Best way to assign post position in a news site homepage? (no categories, no sticky posts)
- How do I restart my loop with get_next_post()?
- “Duplicate” Posts Appearing Since 3.1.2 Update
- Rename “post” to “article” throughout the admin back end [duplicate]
- Set size for attachments
- Adding an image to a non existing post
- How to create new post content templates for my users?
- Excluding posts not working
- (solved) getting post author’s user role
- Block editors annoying warnings
- Disable auto-save and post revisions from inside a theme or plugin
- Refresh problem post is duplicated when page is submitted after page reload
- Migrate posts from category and sub-category via SQL
- Force fill all fields when creating a new post
- Display recent posts from portfolio
- How to get post with slug and exclude categories
- How can I set a maximum allowed post size and number of posts submitted?
- Adding post date will not insert new post
- How to make related post order by random?
- Accessing Post ID Within Loop
- WordPress displays post on subcategory only
- Update field in database for users
- Categories Listing and Highlighting current category item
- In admin panel, use a form to create a post?
- How to get the post id (of the parent custom custom type) in a loop inside a widget?
- WP_Query get posts in custom database table [duplicate]
- How to save template data into wp_post table (post_content column)
- WP query taxonomy optimization
- can’t modify post title using the_posts filter
- user_has_cap filter allows “edit_others_posts” but not is not allowing updating/publishing
- WordPress doesn’t save or publish new posts
- Yoast breadcrumb URL shows category instead of the page
- Add data attribute of post_id for Internal links
- Menu Items disappearing/being empty on save or post edit
- Display/Filter post using if else statement
- Contributor edits published post and sends for review – post is made private?
- Why does my “Add New Post” page have an old post in it?
- link to edit a post has empty target
- Nestling Posts Under Page & Justify Text
- Adding posts updates previous post
- Strange behaviour in WordPress admin
- How do you update post date (year only) in a separate custom field?
- Is it possible to make a custom post that adds multiple pages?
- Creating a link to the first post in a category
- sometimes on saving a post as draft, it says Access Denied You don’t have permission to access “mywebsite.com/wp-admin/post.php”
- How do I change the post title’s link on the posts page?
- How do I make it so that new posts within a certain category go into a certain page?
- WordPress text field in array problem
- List Authors For Current Category
- Get query result according to merged array
- cleaning out posts that don’t exist anymore but links are still there
- Custom URL Structure for posts with subcategories
- Possible to display X number of authors posts from another WordPress site?
- Reading Setting Not Working for Number of Posts
- 404 for some custom taxonomy not ALL taxonomy
- Add tags to post before it’s created
- can’t post immediately
- List posts that are in the same category as the current post title
- save_post not working
- Password-protected Posts lead to 404 Error
- Multiple blog “feeds” in a single blog each with distinctly styled post pages
- How to get pagination working with “Pending” Posts
- Post’s arent displaying
- Show with echo if a post has two or more categories
- Hindi content automatically converting to unreadable language?
- I can’t edit my posts
- Displaying all images from a WordPress post (including media library)
- WordPress shows a count of published items on the site, but the items are not appearing when you click on the “published” link