As this is too much for a comment, I’ll post here and delete later:
http://example.org // domain
?json=get_recent_posts // controller
# Arguments for the query start here
&post_type=mytype
&custom_fields=myfield
&include=title,custom_fields
&meta_key=myfield
&meta_value=myvalue
Have you tried the following?
- Debug the response:
http://www.example.org/api/get_page_index/?dev=1
- Widget-style JSONP output:
http://www.example.org/api/get_recent_posts/?callback=show_posts_widget&read_more=More&count=3
- Redirect on error:
http://www.example.org/api/posts/create_post/?callback_error=http%3A%2F%2Fwww.example.org%2Fhelp.html
And could you post what you get out from the debug?
Related Posts:
- Query to sort a list by meta key first (if it exists), and show remaining posts without meta key ordered by title
- Max length of meta_value
- SELECT max(meta_value) FROM wp_postmeta WHERE meta_key=’price’… stops working when value is over 999
- How can I display all values of a custom field from posts with a certain value of another custom field or from certain post types?
- get_pages sort alphabetically by meta value
- Assign/update the custom field value for all posts
- Order by custom field date with ASC order
- How to break meta values into different items and avoid duplicates?
- WP_query : meta_key with custom rule for specific value
- How to sort category by custom field value
- trim custom field text value and show (…)
- Json api does not return all metadata
- Query post order by post and desc not working
- How to wrap meta values seperated by comma in ? [closed]
- How to create a Custom Meta Box with Name/Value Admin User Input Fields?
- Run a check for multiple meta key values
- Removing link ” from ” on meta_value in custom feilds
- Sort alphabetically by custom field
- Getting Custom Fields from WordPress JSON API [closed]
- pre_get_posts : only get posts by wp_usermeta value
- meta_value and meta_key filtering returning no posts [closed]
- IF Custom field value equals ZERO
- List custom field values in alphabetical order without repetition
- How to update a custom field in all posts with the value of another custom field in the same post?
- Update post meta custom field using block editor
- How to add custom filed value after in wp post title
- Sortable Custom Columns not sorting correct
- query_posts with meta_value
- Show array of meta_value in Edit Post Coloum
- Making WP_Query limit results by date before today where date is a meta_query
- User query – getting values for custom meta keys/fields
- get posts based on non-single metadata
- Set class if a meta value is set within post archive
- Query to sort a list by meta key first (if it exists), and show remaining posts without meta key ordered by title
- Create Shortcode shows only posts with custom_field meta
- 4 Unique Random Posts based on Custom Field Values
- How to add custom_fields value in JSON API using create_post
- Custom Field: Display only if a specific key is selected outside the loop
- WP Query Args – search by meta_key or title
- Saving multiple custom meta box fields
- get Custom field label (select/dropdown) on front end
- Custom post meta field effect on the performance on the post
- Having different sidebar content for MANY pages?
- Add custom objects/entities to WordPress
- Plugins won’t recognize my plugin’s hidden custom fields
- How do I assign this filter to a variable? (Appending php & markup to the_content)
- If value present, order posts by two consecutive custom fields
- Save page data to an xml file
- Create Posts using Import>RSS/WXR/XML and pass values to Custom Fields
- Best way to add custom / magic / flutter fields into RSS feed
- How to save a ToggleControl value in a meta field?
- How to get multiple checkboxes in one meta field
- How do I get the url slug inside the dashboard for a custom post type?
- How do I use Ajax to build a dropdown of custom fields based on a post selected in previous dropdown?
- Register rest field for specific user
- Custom Field Suite A little problem
- Save the_content into custom field
- Auto-remove custom field with no value on publish
- Custom Fields box in the post editor: Replace textareas with input elements
- Hide custom meta data if empty
- Passing args to WP_User_Query am I using meta correctly?
- How to get latest post value if first post is empty in wordpress
- Custom fields attached to a page template only show on edit screen when page is saved
- Value from custom field is not being displayed?
- Can I access a post meta field before the loop?
- wrap text around custom fields array
- Displaying page image in the footer automatically
- Hide custom column in admin template screen (Elementor) [closed]
- Show image if author meta (profile fields) exists outside loop
- How can i retrive a text from a custom field
- ACF: How to get users with a ACF flexible content subfield with a specific value AND layout?
- Is it possible to populate a custom field with content from a page
- Buik update custom field values from external API
- Change a custom field value after X number of seconds
- How to put forward a blog post
- Jquery on custom-field backend
- Display latest post depending on Meta Box content
- Custom fields won’t update
- How to use custom fields like Title to show value in content?
- Populate custom checkout fields with data from previous orders
- Expire Date Condition not Working ACF WordPress
- Making custom meta box required (with error message if not filled in) on Gutenberg
- Changing form action based on selected value
- Very large list of options for BuddyPress profile fields
- Change Order of Sections Using Custom Fields
- How to add content with a filter when there’s no content in the editor
- Text in header as a page – hide from Web crawlers
- When post is updated, custom metadata in text area field is overwritten
- Order a query by meta_value and then by post_date
- custom field functionality
- Custom Fields – How can I remove the publish option for certain users
- Can i categorise my meta box?
- How to overwrite a value for a custom field?
- WordPress archives by custom field and date
- Decouple page name from page title
- When editing a post with a custom meta box the values aren’t displaying correctly
- Function to retrieve a picture if there is no picture is attached
- Show posts containing or not custom field
- add_post_meta insert null value into Database
- extra post fields for url + youtube video / implementation