Forums

Tags for private Posts not showing up (2 posts)

  1. meyersmp
    Member
    Posted 11 months ago #

    I have a blog with a number of private posts so that users must be signed in for them to view the private posts. A number of these private posts have tags that are unique to the private posts and do not show up in the tag cloud in the sidebar when a user is signed in.

    I would like to have these tags show up in the tag cloud when a user is signed in. I found that if I add the same tag to a public post it appears without the same problem, but I would like to avoid this because of the nature of the private post tags that have a very different topic than the public blog.

    Thanks in advance for any help.

  2. MichaelH
    moderator
    Posted 11 months ago #

    The function _update_post_term_count() in wp-includes/taxonomy.php
    looks to use only posts that have a post_status equal to 'publish' in the count so you might find you would need to modify core code to do that.

Reply

You must log in to post.

About this Topic