Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show all categories in Single Post title meta #196

raamdev opened this issue Jun 25, 2015 · 1 comment

Show all categories in Single Post title meta #196

raamdev opened this issue Jun 25, 2015 · 1 comment


Copy link

@raamdev 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:


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
Copy link
Owner Author

@raamdev raamdev commented Apr 28, 2016

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 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
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.