Show all categories in Single Post title meta #196

Closed
raamdev opened this Issue Jun 25, 2015 · 1 comment

Projects

None yet

1 participant

@raamdev
Owner
raamdev commented Jun 25, 2015

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:

2015-06-25_18-10-31

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.

Support threads referencing this issue

@raamdev raamdev added the bug label Jun 25, 2015
@raamdev raamdev added this to the Next Release milestone Jun 25, 2015
@raamdev
Owner
raamdev commented Apr 28, 2016 edited

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 selected
function __independent_publisher_post_categories_single() {
    return true;
}
add_filter( 'independent_publisher_post_categories_single', '__independent_publisher_post_categories_single', 10, 3 );
@raamdev raamdev added a commit that referenced this issue Apr 28, 2016
@raamdev Show all categories in post meta when more than one category selected
You can use a filter to revert to the old behavior; see:
#196 (comment)

Fixes #196.
fbb2ea1
@raamdev raamdev added a commit that closed this issue Apr 28, 2016
@raamdev Show all categories in post meta when more than one category selected
You can use a filter to revert to the old behavior; see:
#196 (comment)

Fixes #196.
fbb2ea1
@raamdev raamdev closed this in fbb2ea1 Apr 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment