I found this article by Jeroen Sormani which solved my problem
Related Posts:
- 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
- append PHP function to the_content
- Need to get specific data from array
- Create an array from an array
- WordPress Wysiwyg Content not being displayed
- Go to / Scroll to Password Field on WordPress Posts After Submit With Message(s)
- Extremely slow pageload for long post when using the_content?
- How do I dynamically generate args for wp_query?
- Wrap First Character after in a tag
- Must Use Plugin Causing Query Error
- 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?
- 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
- How do I Add HTML to the_excerpt() & the_content() Output?
- Call global variable array() in woocommerce child/template
- Showing content from one page on another
- Populate dropdown with Child Pages based on Parent Page chosen
- PHP Array Returning [object Object]. Tried existing answers results with no luck
- foreach loop still echoes array
- Getting content from a referenced post
- meaning of (array)function()
- What are the advantages/disadvantages of using jQuery DOM manipulation as opposed to PHP DOM manipulation?
- 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
- How to use if statement in an array? [closed]
- Create a WordPress shortcode using PHP [duplicate]
- Get html data with javascript to php array and store to wordpress database
- How do I create a numbered list with PHP? [closed]
- How to use array in function to get only value I want
- Get categories names as an array to use it in theme settings
- How to get the last category name of a child category?
- How to use two meta_compare in an array?
- Warning: in_array() null given in PHP function
- Foreach loop inside an array_merge
- How to access or parse key/values that have “string”
- Conditional multidimensional arrays and array_map
- Getting posts to exclude from array
- Get the_content surrounded by instead of
- extract serialized array to use for wp-query
- get users search not working with array
- how to make an array of post id’s in is_single
- How can I split my query result in 2 arrays?
- Multidimensional Array
- Get css class of menu item in custom menu structure
- Dynamically adding filters
- Order a WP_Query by meta value where the value is an array
- WordPress the_content Page Load
- Only load certain artists on this page
- How to make sure relative URL works when site is not on root domain?
- Get URI from PodPress using PHP
- Finding and removing duplicates within WP Arrays
- Using multiple variables to assign categories to an array
- Custom functions for string data calculations
- Repeat a function with 24hrs gap for n number of days
- Problem with inserting multiple images in gallery of each WooCommerce product programmatically
- How to Create custom block for displaying information in content section which act like shortcode
- Give ID to divs inside the loop
- Order users by random not working?
- how to separate an array into different arrays and save them into db?
- ACF – Get ID of relationship field in flexible content
- How to bind each “the_content” elements to a custom variables
- How to filter specific element of an array in wordpress/php?
- WP post meta – for loop inside for loop
- Combine multiple queries, array_unique returns nothing
- Store custom field’s multiple values in one user meta key
- Make sticky post with FacetWP
- Fatal error when using array_diff() function inside of wp_update_nav_menu hook?
- get_users when from meta key that has serialized values
- make an array in wordpress cusmization api?
- Trouble with checked() for array of multiple checkboxes
- How to replace hard-coded list of custom taxonomy terms based on custom field query [closed]
- Get a list of tags present in a paged front page
- Is there a way to have chunks of a page’s content expire?
- How to use foreach and if statement within array of arrays?
- Add custom filter to register data in array
- WP_Post is not from correct array
- How to find the function which is outputting Array
- Auto remove empty values in array
- Exclude Post ID from Array Specified in Custom Field
- Display a post based on its metabox selection
- Adapting a php array to WordPress
- wp_get_archive for category returning different URLs on different but similar sites
- How to print array of specific item
- What is this mark for “? function()” [closed]
- How to combine array info [closed]
- PHP Use Declared array Variable inside already Declared Array
- Excerpt all post content Content Same Size without word cutting off
- Force array to be a string [closed]
- get_body_params() is always empty in POST request
- How to group by column a and sum column b and c in a php array
- Adding date and time to the same request
- PHP how to submit array elements to database
- Get check box values inside array for use in posting form data
- Inserting more than one array into same row