On the site I am developing I have a few custom post types set up (Press Releases, Articles, Podcasts). I also have the Tag Cloud widget enabled in my sidebar.

I have tagged a post with 'Testtest', and I've also tagged a Press Release with 'Testtest'. The problem I have is when I click the 'Testtest' tag on my tag cloud, it only shows the 'Post' that I tagged, and not the Press Release.

Any idea why this would be, or a solution?


2 Answers 2


you can add them using pre_get_posts filter:

function myTagFilter($query) {
    $post_type = $_GET['type'];
    if (is_tag()){
        if (!$post_type) {
            $post_type = 'any';
        $query->set('post_type', $post_type);
    return $query;
  • Thanks for your response, where would I put that code?
    – Probocop
    Commented Mar 10, 2011 at 13:57
  • Ah nevermind, found where. That does indeed show my other post types, though for some reason my navigation disappears on the tag pages now?
    – Probocop
    Commented Mar 10, 2011 at 14:54
  • the only thing this code changes is the post_type query on a tag archive so i can't really tell whats wrong there, if you create a pastebin of your code and output i'll know more.
    – Bainternet
    Commented Mar 10, 2011 at 18:33
  • I have the same problem - my navigation disappears on the tag pages.I will be very grateful if you find why
    – zina
    Commented Mar 13, 2011 at 8:40
  • Yeah we are going to need more info like what your tag page code is like
    – Bainternet
    Commented Mar 13, 2011 at 9:07

I had the same issue, the only fix I've found so far is to wrap the menu with a remove then add of the filter to stop it from breaking the menu.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.