Most sensible here is probably just a custom query
global $wpdb;
$sql_find_meta =
"SELECT post_id
FROM database_name_here.wp_postmeta
WHERE meta_key = 'my_special_value'
AND meta_value > '';"; // > '' == not null, whitespace or blank
$posts_with_meta_key = $wpdb->get_col( $sql_find_meta );
foreach ( $posts_with_meta_key as etc.....
You can repeat this for wp_termmeta
and term_id
Related Posts:
- get_post_custom stripping styling issue
- How to get Advanced Custom Field Value According using POST ID? [closed]
- Guest Author – How to display posts on /author/ archive page
- How do I correctly set up a WP-Query to only show upcoming event-posts?
- Saving Post Data in Another Database
- WP_Query custom field pass the post id
- If custom field is empty, use one from a previous post
- Auto populate custom fields by post date
- ACF Relationship – Get Parent’s Post Object
- How to make a local “scroll to ID” on post?
- How to protect pages with double authentication: password + email (in custom field)
- How set featured posts using checkbox in post edit screen?
- Add a checkbox to post screen that adds a class to the title
- Custom Field in Featured image for A particular post
- Exclude posts that only have the ‘Uncategorized’ category [duplicate]
- Convert custom fields to post categories
- I am trying to create a simple frontend form for posting
- Prevent duplicate posts in wp_insert_post using custom fields
- HTML code in Custom field
- Better post meta efficiency?
- Adding a Nav menu to post admin
- Guest Author – How to modify my custom function code if the guest author URL will follow a particular pattern/format?
- Paragraphs removed when using get_post_custom()?
- Change post format using custom field
- get post id in while loops outputting page id
- get_terms parent for current product only
- Populating a page with content from post custom fields
- How to change what the post creation page looks like?
- Adding Multiple Values to a Post Meta Key
- Autoremove empty custom fields
- Add custom field automatically (add_post_meta) with value based on number of words of article
- Automatic value for custom fields for posts
- Understanding and using metaboxes in posts
- Duplicating Table of Contents for Paginated Post
- Get posts of ONE taxonomy term of custom post type
- WP_Query orderby not working with meta_value_num and menu_order
- How can I sort posts by the date and a custom meta field?
- How to add contents of a custom field to a taxonomy term list?
- How to display Common posts from specific Tag & Category with Shortcode
- Automatically add custom fields value to wordpress post
- Query values from a Post Object Repeater [closed]
- Is there a way to notify specific users when new posts are published to specific pages?
- MySql query to get posts with all meta and terms
- Categories list into registration form
- Add a custom meta box in the post options that loads some html code in the header
- How to display posts via custom taxonomy terms using checkboxes?
- Query Posts With Over 1000 Views
- sql select for post_title and a term name
- Cannot retrieve a custom RSS field from posts
- Saving custom fields to a custom taxonomy
- Hooking into the post editing screen for an existing page only
- Query Posts by Custom Field
- How to rate a post from Admin Side / Manually?
- How to I retrieve the ID from the Posts page?
- Loop parent terms {display posts} AND loop child terms {display posts}
- Edit multiple custom post types while saving a new or edited post
- ACF to select posts not displaying on blog page
- Check if current user has a post and that post has any term/s from a specific custom taxonomy outside the loop
- Parent category / child category posts
- Getting property of non-object when looping through post objects from ACF
- Output Post with ACF Fields into other Post
- Only allow posts with a specific term to only be viewed by other authors with the same term in their post
- Add hero image to home page (blog format) via the dashboard
- Add two custom fields as a default to the “new post” page.
- Add multiple meta keys to a post at once
- Accessing Post ID Within Loop
- saving/reading custom field value does not work – no value gets POSTed
- Adding external field to my post form (admin side) and to post show (frontend side)
- How To Use Custom Fields With .mp3 Links
- how can display a post on home screen without images
- Will multiple category descriptions effect my search engine optimization?
- What snippet do I need to type to show my ACF field show up on my theme?
- Post picker custom field on page
- get_field values for each post on home page using wp_add_inline_style
- Custom Fields – How to get the list of a specific active widget each time it rendered
- Run a function when a custom post is update?
- Query on a repeater date (acf)
- Saving canvas generated image when saving post causes 404 error
- Is there a way to save different data when USER interacts with the same POST?
- Change post value in WordPress
- How to get value of a selected option from select tag and use it in WP_query to filter posts?
- WP_Query sort by meta_value_num or date
- How can we print out total number of posts filtered by post type and category?
- Creating Ordered Query using Meta_key
- How can I set and update the the_date according to a custom field of the post
- WP Query between posts custom fields [duplicate]
- get_the_ID() fails the first time, returns a value the second time it’s called
- Run function after post is updated
- Using Post ID and Page ID in same function
- Apply comment to different post (not the current post) [duplicate]
- Loop through posts by each term and exclude duplicate posts assigned to several terms
- How to only allow post to be deleted if custom field doesn’t exist
- How to get all the terms of a post
- How do I insert a custom field in a user submitted post?
- Attaching global meta to custom fields
- First Custom Post Custom Fields Empty After New Custom Post
- How enter custom post meta or custom field on box post list archive page?
- Read more opens attachment
- How to make internal links creating plugin to respect ACF?
- Image inside the content is replaced with featured image from my older post