Ok, so it turned out that my array was an array of strings somehow, which using var_dump (instead of print_r) revealed. Then I needed to convert my array to int values, which I did thus:
$myissuearrayINT = array_map('intval', $myissuearray);
And now, when I do the following it works as expected:
wp_set_object_terms( $myID, $myissuearrayINT, 'my_issues', true );
Hope this helps someone else out there…
Related Posts:
- Sort a custom post type array numerically
- Matching slug terms from one array to those in array of WP_Term objects to output term names
- Nice way to print_r arrays
- Why does get_users suddenly return duplicates?
- WordPress: How to use post_class() in an echo
- How do I pass an array as an argument to a WP-CLI command?
- Updating wp_options with an array on save_post results in duplicated entries
- Passing a variable into Contact Form 7 [closed]
- WP_insert_term how to insert multiple values as taxonomny term?
- update_post_meta from data in multidimensional array created from a form
- Make Selected Mutiselect Items “selected”
- settings api store multiple array
- if is_singular array not working as expected
- Get Term names from WP Term Object
- Get posts id in array by meta value and key
- How to add day number and initial to my post graph?
- How to validate register settings array
- How to check an array of $curauth fields?
- Outputting an array of term meta values in a custom WooCommerce tab?
- Problem with wp_update_post
- Check if term object is in array
- Replace text inside a huge multidimensional array
- Variable in Array Not Working
- tax_query operator woes
- update_post_meta() with a modified array?
- get_tags() return an empty array after added tags with wp_insert_term()
- How pass a 0 in $atts?
- get a simple array of all of the term names that exist in all taxonomies
- Retrieving multiple values to the Post Meta (using an array)
- Echoing a variable inside a function
- How to Translate a string of an array inside a class?
- Combine get_page_by_title to exclude pages from wp_list_pages
- Plugin settings page checkbox not saving – one options array with sub array
- Struggling with array and foreach loop
- Update post meta does not serialize array
- Customizer Settings in Arrays
- How to decipher the following array
- How to display line breaked meta values in table?
- Organizing and grouping an array by year
- How can I access string value in an array?
- Array in meta key?
- Saving array keep adding length of array
- Query posts using custom taxonomy and selected terms
- Obtaining values from objects
- How to get a page array and category array going at the same time?
- get_the_terms, whether I should use string or array as the second parameter?
- Tax query with multiple terms in pre_get_posts
- get_terms() returns Trying to get property of non-object error for custom taxonomy
- WP Page Options Array
- Array is not working in Filter?
- How to put an array in wp user query
- Removing a taxonomy term
- Inserting a random number into an array [closed]
- Random element in get_post_meta array
- update_user_meta duplicates entry
- Add formatting to Array
- How to randomise my menu items?
- How to order a taxonomy’s terms numerically, from lowest to highest using get_terms
- Sort query_terms_list for post_tags alphabetically
- WP Query by 4 different taxonomies
- Retrieve array items without page ID
- How do i fix this “call_user_func_array()” error
- How can I get the content of the current page in my loop while merging post-type
- wp_insert_post($post), add an array of values with update_post_meta
- update_post_meta adding to array instead of replacing value
- Add Array record to Meta Post
- How to output get_tags array list to select box
- How to avoid duplicate users when I am using get_users?
- How to add each letter, entity, special character from post title to array
- Strange Behavior with update_option
- wp_update_post to set post IDs to drafts not working
- How i can extract data
- Show Tags of Custom Post Type outside of Loop
- “Undefined variable: array” Error In Displaying Post Tag
- WPML admin texts with serialized objects
- Merge arrays and order set and subset as one
- Create dropdown menu of all tags used in category
- How to get several fields from wp_query?
- How can I get a list of custom post IDs into a variable I can use for another function?
- Use $wp_customize->add_control to create a selectable “Designed/Powered By” choices select w/ link in footer?
- Tax query array terms display out of order
- Order posts with custom taxonomy array
- Echo the key from a select-box in Array with get_option (Settings API)
- Updating wordpress user meta data array (unexpected multiple arrays)
- update_post_meta array issues
- taxonomy terms array not working
- Update Post Meta for Arrays — Remove/Replace Single Value from Multi Dimensional Array
- Get custom_user meta value and add entry
- How do I retrieve a value from a multi – dimensional array using get_post_meta? [duplicate]
- How do I retrieve an array from wp_postmeta with get_post_meta?
- post custom values
- How to check if the postID is in an array? [closed]
- Create heirachy of post terms from array & assign post to terms
- Fatal error in my WP
- Marketpress php warning on server, no problem on localhost [closed]
- How to match data in multidimensional array of post_meta_data?
- Insert data into custom table from fetching $_POST values
- how to separate array with commas? [closed]
- JSON webhook WP Automator – Help with Syntax [closed]
- Multipe array in meta_input