Well, way late, but I found this looking for the answer myself before solving it, so I’ll post for others in my boat, as I’m sure the OP sorted this by now. 😉
Use "meta_key"
and "meta_value"
in your query after taking a look at “post_meta” in your database to figure out what the simple fields plugin created, like the OP did above. The query I needed which is posted below grabs posts from 3 different post types (2 custom) where the simple field I added: “feature in homepage slider” has a dropdown value of yes (meta_value: dropdown_num_3
).
query_posts(
array(
'numberposts' => '10',
'post_type' => array('filmp', 'corp', 'post'),
'meta_key' => '_simple_fields_fieldGroupID_1_fieldID_3_numInSet_0',
'meta_value' => 'dropdown_num_3'
)
);
Related Posts:
- Custom query with orderby meta_value of custom field
- Query Posts or Get Posts by custom fields, possible?
- Add a Jquery Datepicker to custom field in post edit
- query_posts and only show results if a custom field is not empty
- Filter archive.php by custom meta
- Correct Approach for Validating Custom Field Input
- Order posts by custom field and if custom field is empty return remaining posts
- Getting movie and serial on actor page
- Query on custom field count?
- How to use query_posts() with a date filter on a custom field?
- Auto-add paragraphs to custom field?
- meta_value_num sort glitch
- Can ordering post list by meta_value cause performance issue?
- Order by value in serialized custom field
- Author Page Custom Query WHERE author OR [post meta value] OR [post meta value]
- How do I query for a post by custom field?
- meta query not showing any results?
- Alternative to simple fields plugin?
- how can i use custom field in query post
- using multiple meta_key and meta_value in query_posts
- Query post order by post and desc not working
- How can I sort homepage by a meta value?
- Order query by meta_value with multiple custom fields
- Show 1 post and after a specific date show the next one
- How to select posts from multiple categories and metavalues?
- meta_compare seems to be treating values as strings instead of integers as expected
- Change order of posts
- filter custom field values $min $max
- query posts custom field calculation value
- WP Query – Is this correct?
- Query_posts with custom field meta value
- Unable to get specific value from post meta
- Meta_query ‘compare’ => ‘LIKE’ not working?
- query_posts with meta_value
- Custom search SQL Query to add custom field in result
- How to put forward a blog post
- How can I change the publish date based on a custom field?
- Meta Box Plugin Cloned Fields – Multiple Foreach values
- Display metabox title for custom fields with values
- Get author total post votes from post meta
- Problem with writting correctly a query posts args in WordPress
- Counting post fields
- query_posts -> get page_id from custom field
- How do I use foreach to get content from a custom-field in multiple posts?
- How to exclude post from being queried based on custom meta value
- How can I hide my section title if there is no data in custom fields?
- Show message if statement is false – foreach
- Checking if field is set before comparing with meta_query in query_posts?
- Filtering posts by WORD in custom field
- Retrieve IDs from custom field, count and display results differently according to count
- Display agents (custom post type) alphabetically, except one who always shows last
- Filter Query Post by Custom Fields(by date)
- Foreach giving one too many list items, how can I remove the last empty line?
- get_the_ID() retrieves same ID on Gutenberg’s Query Loop
- adding extra wordpress user info from registration form
- Hide custom meta data if empty
- Custom Meta Box (SELECT) Not Saving
- Adding number to date not working [closed]
- Get an advanced custom field after post publish
- How to create a dropdown select of all items in an ACF field group
- Custom fields value
- How do I have WP_Query match posts based on search parameter OR meta fields? (rather than search parameters AND meta fields)?
- How can I add extra word in permalink when someone click download button?
- Better way to save image in custom field
- how to make members list directory through wordpress post custom meta key.
- Why the pagination for a query modified by pre_get_posts doesn’t mind the number & order of posts sorted & selected based on a custom date time field
- Saving and Restoring a Canvas on A Individual User Basis
- Advanced Custom Fields dynamic update_field
- Custom Profile Fields move from BBpress to BuddyPress
- modify wordpress caption shortcode
- How can I output a list of values for a custom field, and posts with those values?
- Editable custom field in WP Admin Dashboard
- Seach custom post type posts only by meta fields?
- How to display image inside container of custom made widget
- Manipulate javascript code from custom made admin page menu
- Client PDF Upload (Catalogue) – Automatically update link to PDF
- How do I add an image upload, custom field to a WooCommerce product?
- How to use thumbnail size of image if I’m only using src to get image
- How to create a shortcode to print specific values stored in a post meta array?
- 3 Slashes appear after Apostrophe in custom fields after updating product-site
- Advanced search for meta fields
- WooCommerce – Adding Custom Fields To Invoice
- Get updated meta value after post update or published (custom post type) using hook
- How to add upload video option in wordpress for user?
- Woocommerce Product Custom Select List (not variation)
- Changing themes… and need to move Custom Field content into another field
- Filter Posts on Custom Fields and Show them on a new Page
- update_post_meta for repeated custom field [closed]
- how to retrieve a value if a checkbox is checked
- Removing link ” from ” on meta_value in custom feilds
- Trouble checking if custom woocommerce checkout field is empty or not
- Two queries for a WP_User_Query search work perfectly apart, but not together
- Passing args to WP_User_Query am I using meta correctly?
- jQuery – Automatic event trigger does not **really** check my form
- Get posts with same meta value as current post
- Want to make A CSS if meta key value is empty
- Jetpack post types Portfolio or Testimonials support for custom fields?
- Add custom field to all posts in specific post_type
- Trying to update_post_meta function
- Merge Multiple Custom Fields into one New Custom Field for Searching