• Hi there,

    This plugin is just what I was looking for!

    I’ve noticed that posts are still “counted” into the “tag cloud” widget, even when they are “hidden from tag pages”. This can create a lot of tags with empty archives.

    In my case, I need to keep the posts visible into the tag pages, but I would like to hide them from the tag cloud widget. Is there a way to achieve that?

    Thank you!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author MartinCV

    (@martin7ba)

    Hello,

    Thank you for contacting me.

    I am sure there is a way for the old Widgets (before Gutenberg). I will check about the new block widgets. They kinda skipped some hooks when creating those block widgets.

    If there is a way I will add it. If not, I will create ticket on the WordPress Repo for adding that option and as soon as it is added in the Core of WordPress I will add the functionality in the plugin.

    Thank you,

    Plugin Author MartinCV

    (@martin7ba)

    Hello,

    I just checked the tag uri from the tag cloud and it takes you to the /tag/{tag_slug} page which is the same as the tag page by default.

    Is it different url on you site for tag cloud page and the tag page?

    Can you please share url where you want to show the post and where not?

    Thank you

    Thread Starter klapauc1us

    (@klapauc1us)

    Hi,
    Sorry, maybe I didn’t explain it quite right;
    The problem is the widget itself, not the tag pages: even when the post is hidden on the tag page, the post is still “counted” into the widget.

    So, let’s say the post has the tag “TAG A”: the post is hidden on the page with “www.mysite.com/tag/TAG-A/” URL, but the widget still shows a “TAG A (1)” that links to that “empty” page.

    In my case, I would like to NOT hide the post from the tag page (so, when you go to https://www.mysite.com/tag/TAG-A it is visible), but hide it from the tag cloud widget (so, “TAG A” just doesn’t appear into the tag cloud).

    I hope I’ve explained it better this time…Sorry ??

    Plugin Author MartinCV

    (@martin7ba)

    Let me see if I got this correctly.

    So if TAG A has 10 posts for example it will show as TAG A (10) and you hide one post that has a TAG A tag the tag in the tag cloud should read TAG A (9), but when clicked still show the post on the tag page?

    Or you want to totally remove TAG A from the tag cloud so you would need an option like HIDE TAG A FROM TAG CLOUD?

    Thread Starter klapauc1us

    (@klapauc1us)

    I think it’s more like the first thing you said ??

    Let’s make some examples:

    -If TAG A has 10 posts and I hide one from tag page, since it’s hidden, the tag cloud should have “TAG (9)” instead of what happens now (still has “TAG (10)”);
    -Of course, if the hidden post from the tag page is the only one with TAG A, then “TAG A (1)” shouldn’t appear at all into the tag cloud;
    -However, since I don’t actually want to hide the post from the tag page, there should be a separate option to select like “hide post from tag cloud”, so that it’s like what you said: I have 10 posts with TAG A but only 9 are counted into the tag cloud (but the tag page still shows all 10); if I have only one post with TAG A, and it’s the one with “hide from tag cloud”, then nothing appears into the tag cloud.

    • This reply was modified 2 years, 9 months ago by klapauc1us.
    Plugin Author MartinCV

    (@martin7ba)

    @klapauc1us I think that is possible. I will try to add it for my next release and I will let you know if for some reason I find that is not possible to add such option.

    Best,
    Martin

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Hide posts from “tag cloud”?’ is closed to new replies.