The answer was that I was not referencing the 0 index of the json post-meta-fields array. It was trying to return an array instead of just the string.
Instead of
'color' => $article_array['post-meta-fields']['color']
I needed
'color' => $article_array['post-meta-fields']['color'][0]
Related Posts:
- WP REST API “rest_no_route” when trying to update meta
- Options to get my custom post type metadata via the WordPress API
- Is it possible to update a post meta field through REST API if the format of it when registered is nested?
- Update Line Item Meta Data – WooCommerce API
- How to properly use oneOf and anyOf in Rest Schema?
- Cant create or update meta fields using WordPress REST API
- Bulk Update Post Meta Values from Different Post via Rest Api
- How to register post meta with multi level arrays?
- Attachment metadata has value of ‘1’
- WP-API + JS Backbone client – how to update post meta
- Check if Post Title exists, Insert post if doesn’t, Add Incremental # to Meta if does
- Meta compare with date (stored as string) not working
- How to update/insert custom field(post meta) data with wordpress REST API?
- Front-end update_post_meta snippet displays white screen?
- How to get meta value in wp_attachment_metadata
- Clean up output added via wp_head()
- Rest Api v2 orderby meta_key in custom post type
- Get post from meta_key and meta_value
- get_post_meta returns bool(false)
- How to get custom post type to display post meta on archive pages?
- WP_POSTMETA changes site crash
- meta_post_meta return value 1
- How to use post_id with a Class?
- Set default Custom Post Meta Value
- INSERT ON DUPLICATE KEY UPDATE failes in postmeta table
- Set Checkbox as checked by default
- replacing the_autor or make callback
- Some post meta fields stop saving after a few successful saves
- Custom post meta values reset by autosave [duplicate]
- Compare meta_query with a Regular Expression and do a less-than operation on it
- need some assistance with the checkboxes (selecting/deselecting featured posts)
- Custom query, multiple custom keys
- Trying to get property of non-object error using get_post_meta()
- Adding new value to existing meta key
- How can I change the tag contents of individual WordPress posts?
- get_post_meta producing white screen of death
- update_post_meta not working in plugin
- how to get a list of meta data fields assocaited with a custom post type
- Look up all posts by status or meta value – performance difference
- Can A Post Meta Field Store multiple values that are not in an array?
- esc_attr on get_post_meta [closed]
- Sort custom posts in archive by multiple values: date AND meta key
- Delete posts based on post meta data
- How is the author’s name given a different color?
- How does WordPress treats attachments metadata in post content?
- URL to Post Meta [closed]
- How to delete duplicate records in wp_postmeta database table?
- Retrieving post meta array (attachment)
- update_post_meta() adding bits in database [closed]
- Get posts ordered by meta data
- Why is variable that get_post_meta stored in empty?
- Stop `update_post_meta` from working each time page refreshes?
- Displaying values from related field – if empty shows current post type’s link and title
- get_post_meta inside echo [closed]
- WordPress postmeta: Store data as an array or single item?
- get_post_meta in one post only
- Array of user ids to list of user names
- Conditional For get_the_author_meta
- Custom fields or something else
- wpdb->get_var – count author posts, meta value
- Search post overlapping dates – meta_query with meta_key
- Post Publish date not display on Umaya Child themes
- How to merge the database results into single result?
- How can I update this array built from post meta data?
- if get_post_meta function returns empty – Do Not Display HTML
- Custom column on CPT not showing correct value when meta data not set
- I Can’t get the post_tag name from term_id using wp_set_object_terms
- How to get the total of two meta values from different meta keys?
- How to update/add child posts meta whenever the parent post meta is updated?
- Get or set values in post meta
- why is my postmeta table is so heavy
- update_post_meta() throws Uncaught error: Cannot create duplicate attribute
- Display multiple meta_key/meta_values by single SQL query
- Using a comma instead of a pipe to separate metadata
- Custom meta POST request fired twice when updating a post in Gutenberg
- show user based on user_meta
- How do you sort the items in a custom taxonomy meta box?
- How Can I extract Image urls from post meta
- Best Way to detect unique posts in wp rest api
- post_title in save_post action
- Getting meta content from get_next_post & get_previous_post
- How to get pictures of the WordPress post
- Sorting meta box values by start- and enddate and all dates in between
- Use an id on a button to update_post_meta in post
- When importing posts to a new site if XML file has postmeta not setup on new server what happens?
- Get value from post meta array, and add it as a category
- get_post_meta image width for lazy load
- Access Serialized Post Meta Values
- Custom Fields help
- Does post-meta belong in header?
- WP-API : post_meta not updated… but have another entry
- How to get all the related ids without array?
- Remove action of an external plugin after checking if custom post meta is set
- How to show wordpress post in the site based on custom field value?
- get_post_meta() returns nothing in save_post, publish_post, wp_after_insert_post
- Update post meta Rest Api
- Extend file format support for post thumbnails
- How can i delete default title tag from wordpress?
- Why isn’t my embed_video WYSIWYG field updating when using update_post_meta?
- rest_api_init is not getting invoked inside a Class