I found this article by Jeroen Sormani which solved my problem
Related Posts:
- How can i remove all html tags from get_the_content()?
- Sorting list of sites from multisite network using wp_get_sites
- How to store the_title() into a variable to reutrn the value, not just echo it
- Metabox repeating fields – radio buttons not saving correctly
- How can merge two arrays values in one array and save in database
- How to update single value in multi dimensional Post Meta?
- Changing the HTML Of the content
- Error in WP_update_post
- append PHP function to the_content
- Compare two meta key values against each other inside the get_posts array?
- Looping through WP_Post Object
- Need to get specific data from array
- Using a javascript file to access a get posts array
- Create an array from an array
- WP_User_Query order by meta_key that is an array
- WordPress Wysiwyg Content not being displayed
- Go to / Scroll to Password Field on WordPress Posts After Submit With Message(s)
- Generate an array of parent/child page IDs, based on parent page name
- Extremely slow pageload for long post when using the_content?
- How do I output a database option that is an array into a get_posts array?
- Can an array be used as a meta_query value?
- Listing and displaying WooCommerce Shipping Zones in the frontend? [closed]
- How do I dynamically generate args for wp_query?
- List of posts by day of the week
- Check if term object is in array
- Output 2 items within the Loop
- Wrap First Character after in a tag
- Must Use Plugin Causing Query Error
- ‘orderby’ => ‘rand’ alternative for better performance?
- How to convert objects into arrays
- How to call function at the bottom of post using plugin?
- Parsing php string in jquery [closed]
- Admin Options page. Save as Array
- PHP get the first post separately from array returned by wpdb->get_results()
- Working with query_posts ( arrays and query strings)
- how can i show only the parents in owl-carousel?
- Create shortcodes within foreach loop (using array)
- Using a variable in is_page(array())
- Remove duplicates – array_unique()
- How can I add multiple ‘tax_query’ arrays via a loop?
- How to properly loop through these external URLs to get them into the sitemap using this hook
- Output Buffering – Everything between wp_head and wp_print_footer_scripts?
- How do I Add HTML to the_excerpt() & the_content() Output?
- Recent posts with featured image or fallback image with permalink
- Call global variable array() in woocommerce child/template
- Storing Array from returned database query and using the array in a new query
- Showing content from one page on another
- get_the_tags() not iterating through for/while loop, but will with foreach
- get a simple array of all of the term names that exist in all taxonomies
- Populate dropdown with Child Pages based on Parent Page chosen
- How to use $query->set with post__in?
- Reprinting tags with all attributes
- Removing “wpautop” (auto tags) only on certain pages?
- PHP Array Returning [object Object]. Tried existing answers results with no luck
- foreach loop still echoes array
- Exclude posts based on meta value
- Checking array against author id in loop
- Get URL from shortcode tag
- Alter required message using comment form api
- How to debug this search & replace strings snippet?
- Getting content from a referenced post
- Advanced Custom Fields – display label and value only if value entered
- Only first shortcode gets executed
- meaning of (array)function()
- Grouping posts by a custom meta value
- wp_force_remove_style’ not found
- What are the advantages/disadvantages of using jQuery DOM manipulation as opposed to PHP DOM manipulation?
- How to hook code to show after the_content?
- How to fix this warning:call_user_func_array() expects exactly 2 parameters, 1 given in D:\wamp\www\…….\wp-includes\class-wp-hook.php on line 286
- wp_get_archive for category returning different URLs on different but similar sites
- !in_array doesnt recognize category
- get_permalink returning first letter
- Showing all post from all post type in admin backstage
- How to set if meta_value is lower < than other meta_value in a get_posts array?
- How to print array of specific item
- What is this mark for “? function()” [closed]
- How to combine array info [closed]
- Populate checkboxes from array
- Use php array outside his function
- PHP Use Declared array Variable inside already Declared Array
- Excerpt all post content Content Same Size without word cutting off
- Retrieve Array from within Array [closed]
- Force array to be a string [closed]
- Why is my array_diff usage breaking things?
- get_body_params() is always empty in POST request
- Grabbing value of input field inside of array
- save array of objects with update_option
- Custom WordPress Function – Adding items from Foreach Loop into an array and Updating Field based on array of IDs (ACF + WooCommerce)
- How to initialise WP_Query on the basis of a specific meta_value and continue iterating rest?
- How to group by column a and sum column b and c in a php array
- Replace block content with an array
- Adding date and time to the same request
- PHP how to submit array elements to database
- PHP – Converting elements to actual values
- Send emails to individual subscribers when CPT post is deleted (trashed)
- How to pass php array to external js file in WordPress
- Get check box values inside array for use in posting form data
- Warning: Array to string conversion in /css/base.php on line 500 [closed]
- Updating from multiple array custom table
- Inserting more than one array into same row