Show only one category on Category tag on modules/blocks

Posted in: Newsmag
Post count: 19

My category structures have numberous category and main block for frontpage is generated form second celected category – example: article is in Sport and (MAIN NEWS) category… How can I display only SPORT in category tag and not the (MAIN NEWS)?

Thanx!

Post count: 6535

Hi

You can set SPORT as primary category and it will be displayed as category tag on modules and blocks.
Let us know how it goes and if this is not what you mean please provide more detail about what you’re trying o do so we can get back to you with a more accurate answer.

Thanks!

Post count: 19

How do I set primary categories or do I have to do it for every post?

Post count: 6535

Hi

The primary category can be set from post editor and most be set individually for each post: http://screencast.com/t/2BSQ0SmR1NP6

Thanks!

Post count: 19

I have more than 45.000 posts!!! Can It be done over settings to de-select NOT primary or to define “exclude” category for not showing… Or some cote to “exclude” categoies from showing TAG, maybe in function.php file?

Post count: 22421

Hi,
Unfortunately there is no easy solution for this. If there is no primary category set, the theme will grab the first alphabetical category. If you want to change this functionality you will have to change the code for it here: http://screencast.com/t/IAHpIOp4Nji
Thank you!

Viewing 6 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic.