Display only subcategory as tag.

Posted in: Newspaper
Post count: 10

Hi.
On block 3 the category tag displays parent category.
Is there a way to display only subcategory.

Like if there are Cars > Nissan
It will display Nissan not Cars ?

Post count: 10

I mean with code not with setting the setting from the posting page.

Post count: 20688

Hi,

The category that displays on a module can be controlled by the primary category feature
https://forum.tagdiv.com/primary-category/
Setting a primary category for the post will display it’s category tag on the modules. So the solution is to manually set the primary category you wish, for the posts you wish
https://www.screencast.com/t/BgxeAtDYQQF
The posts will inherit also the sidebar from the primary category, unless a sidebar is set manually. It is all mentioned in the guide.

Thanks

Post count: 10

I have automatic posting plugin and I cant set the category. Is there a way to change the Code to display subcategory?

Post count: 20688

Modules by default will display the primary category. Posts always have a primary category if created and published. If one is not set manually as mentioned in the guide, the first one alphabetically is picked (or if there is only one, it will be picked). That is why this setting is useful, it allows control over the tag.

If you cannot use this option, then you will have to modify each of the modules and probably the main function in order to achieve something like that through code modifications
https://www.screencast.com/t/mF7eJ110tXo
https://www.screencast.com/t/84rzrnwp

Thanks

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