You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a post is assigned to more than one category, the Post Meta above the Post Title in Single Post view only shows one category:
This is because this line is passing true to independent_publisher_post_categories(), which forces it to only output one category.
This should be changed to default to outputting all of the categories, along with a new filter that allows overriding this in case a site owner wants to force only one category there.
The default behavior here has changed so that when viewing a Single Post, the categories that appear at the top in the Post Meta will now show all categories that have been selected for that post, instead of only showing one category.
If you want the old behavior (show only one category even when more than one category has been selected for that post) you can add the following filter to the functions.php file of your Child Theme:
// Show only one category in the Single Post Meta even if more than one category is selectedfunction__independent_publisher_post_categories_single() {
returntrue;
}
add_filter( 'independent_publisher_post_categories_single', '__independent_publisher_post_categories_single', 10, 3 );
When a post is assigned to more than one category, the Post Meta above the Post Title in Single Post view only shows one category:
This is because this line is passing
true
toindependent_publisher_post_categories()
, which forces it to only output one category.This should be changed to default to outputting all of the categories, along with a new filter that allows overriding this in case a site owner wants to force only one category there.
Support threads referencing this issue
The text was updated successfully, but these errors were encountered: