Hot answers tagged

1

I'm not sure this will fix it, but maybe try using the current category slug for the $current_category variable, instead of single_cat_title(), like so: $term = get_queried_object(); $current_category = $term->slug; This might help because the category_name parameter in WP_Query, despite its name, should be the term slug. single_cat_title() ...


1

I think I am understanding your correctly...If I'm way off, let me know! // Assuming ideas is an array and you are looking for ideas=>two $query = new WP_Query( array( // You can pass 'any' to post_type, but you get a hold of revisions, attachments, and menu_items. But I am not sure how many Custom Post Types you have ¯\_(ツ)_/¯ '...


Only top voted, non community-wiki answers of a minimum length are eligible