Figured out a solution. Ended up querying each categories using “foreach” and inserting my custom function into the loop. Not sure if it’s the best approach but I got it to work so eh. No one else seems to want to help.
Related Posts:
- How to order category.php loop by ‘meta_value’?
- How to show subcategories using loop?
- Five posts from a category in footer
- How to get all unique categories for posts in loop?
- Check if loop has any categories?
- wp_query is showing posts from other categories
- WP_Query with one category in args shows other categories
- Function the_posts_pagination() not compatible with WP_Query arguments
- How can I have sticky posts while ALSO showing posts from a specific category using one WP_Query?
- Get categories within specific term
- How to show specify category template for both parent and child category
- Display 3 levels of categories on page
- I have 3 categories, i want to display on a loop the last 3 of every category
- Retrieving category pages from subcategory returns empty sets
- Main loop querying current template’s info only in custom category archive pages, not my posts
- Pagination only showed when no category is set in wp_query
- Can I force WP_Query to return no results?
- Multiple WP_Query loops with Pagination
- WP_Query and next_posts_link
- Too slow when using both ‘tax_query’ and ‘meta_query’ both in WP_Query
- Get array of posts from the current archive page loop
- Get the number of posts from the current page results
- How can I save an array from a random post sequence for later use?
- In loop: posts have thumbnail AND other variables
- Add inline HTML to posts published within last 24hrs
- Move posts to top of WP_Query if in certain Taxonomy?
- Display different number of posts from one category on the different pages
- Pagination not working Search posts
- How get posts from a subcategory of a category by name?
- Can certain (site-crashing) limitations on WP_Query in shortcode be overcome?
- Implementing an OR statement to wordpress wp_query
- Get List of all the Authors
- WP_Query arguments to fetch custom post type posts which are in certain category?
- WP_Query loop within WP_Query loop
- How do I reset this wp_list_categories query?
- Refine search results using WP_Query
- How to pass many ids in post__in?
- Sub-loop / nested loops Best Practices
- Remove a specific category ID from related post
- Show Sticky Post at the top but do not show again in the loop?
- Any number in meta key (wp query)
- How do I run through a WordPress loop called from a filter function?
- How do I get the title of a category in a custom loop?
- Using the_post_thumbnail resets current loop item ID
- Search Query for multiple categories using ‘OR’ but having certain categories be ‘AND’
- Out Of memory issue on post per page parameter
- WordPress query with items from more than one selfdefined taxonomy as `term` argument
- Multiple Loops on category.php with pagination on last loop
- Get all fields inlcuding “ACF” (Advanced Custom Fields) columns in wp_query
- Inserting HTML to close and open divs in WP_Query loops
- Change query from cat id to slug or name?
- Using Wp_Query without the loop?
- Issue with front page navigation after upgrading to 3.4
- Custom WP_Query id
- Assign custom parameter to each post in query
- Exclude recently updated post from custom WP_Query using multiple loops
- get_posts output always same post
- WordPress Custom Search Form Displaying Unexpected Results
- Stomping WP_Query in author archive to facilitate pagination with custom queries
- How does WP generate the default $query in WP_Query based on the URL?
- how to get category`s slug in WP_Query loop?
- How to remove only the latest sticky post from the loop
- How I can repeat 2 HTML templates in a WordPress Query?
- Loop categories by recent post
- Does putting queries within loops cause an issue on WordPress?
- WP_Query of Category Not Showing First Post
- Offset WP_Query by negative 1
- WP_Query orderby random do not repeat infinite scroll – one loop
- Advise on Templates for Custom Queries
- Query WP Page for Buddypress Group Home [closed]
- $post in wp_query?
- How to pass the current content of $wp_query to a new page?
- How to separate two columns from one content on a page template?
- Can I alter the main loop to ‘orderby’ a custom callback?
- WooCommerce | AJAX | Product Pagination | Help me implement Ajax Pagination
- Avoid removing duplicate posts
- Query post by Category and custom file (ACF)
- Regarding a custom loop and output HTML tags
- Repeat array inside array through while loop
- What’s causing an infinite loop?
- Filtering ‘Featured’ posts from a batch of category IDs
- pages shortcode filtering by category
- Second WP_Query loop shows data from main query
- Meta Query if Values Don’t Exist
- Get post Number with local loop and template
- How to order posts, that have already been filtered by custom taxonomy, by their category names?
- query_posts() doesn’t seem to be called in my page
- display post multiple times based on array of dates
- Problems with WP_Query, Loop, a condition and Posts per Page
- WP_Query secondary query failing
- Multiple wp_query loops showing first 5 posts on all pages instead of older posts[Resolved]
- Next / previous posts link doesn’t show up with Posts 2 Posts
- WordPress Numeric Pagination with Query String [duplicate]
- Printing direct descendants of a category with WP_Query
- $query conflicting with other queries in the same page
- Carousel Loop only duplicating
- How to show featured post first, then separate loop for other posts
- Filter posts by category
- WP_query shortcode inside acf Repeater breaks the repeater loop
- Using WP Query, I want to include all posts in category 1 as long as they are not also in category 2