Featured category with sub categories – can I hide them too?

Posted in: Newspaper
Post count: 3

Hello!

The site I’m working on requires an editorial workflow that has the need to select where a story will appear on the site.

Example: A “Top Story” is meant to be the first, large block on the homepage. Then other featured stories under it. After that, the typical news loop that is paginated and excludes the “Featured” stories. The “Top Story” won’t just be the latest “Featured” story.

I see the “Featured” category is hidden from users on the front end of the site and can be excluded from the loop. https://forum.tagdiv.com/featured-posts-2/

When I make a sub category under “Featured” category, those stories are not hidden from the loop and the “Featured” category along with the sub category is visible on the front-end.

Is there a way to hide “Featured” and any child categories under it? It seems adding a child category and using it breaks the “Featured” functionality.

Maybe a bug? It would be great if we could have a set of categories to filter on that are hidden from the front end like “Featured” is currently.

Hope you have ideas on how I can do this. Thanks!

Post count: 22421

Hello,

Please do not use sub-categories to the featured category. This is not tested and could provide issues with the functionality.
The simplest method would be to use tags and filter the posts by tags. If you want t post to be a top story, simply add a tag in this regard and filter that tag on the top block.

Thanks.

Post count: 3

Thanks for letting me know. I’ll drop the sub categories.

The tags can be omitted from the “Posts Loop” on the homepage, so that gets us there. The only issue I have is that these are tags for layout, not content, and would still be visible on the front end to site visitors. They don’t have IDs or anything for me to hide them. I suppose I could do something with string matching in JS.

Is there a way to hide specific tags from the front end that I’m not aware of?

Thanks for the support!

Post count: 3

I found this other solution and it seems to do the job. Will test and follow up if I get something working.

https://forum.tagdiv.com/topic/hide-exlude-specific-wordpress-tags-in-frontend/#post-135892

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.