Category Tag Content

Posted in: Newspaper
Post count: 9

Hi,

I want to make the category tag to represent the Primary Category rather than the category whose position of the characters is front than others in alphabet.

For example,
I have an article belongs to some categories of DDD, EEE, and NNN.
NNN is the primary category of this article, which I want to show in category tag.
However, DDD is the actual one to be showed on tag since the character position of DDD is front of NNN in the alphabet.

Can we decide the content of category tag?

Thank you.

Post count: 27744

Hello,

If I understood correctly, then a possible solution could be this one: https://forum.tagdiv.com/primary-category/

Hope that helps you!

Thank you!

Post count: 9

Hi,

It is exactly what I am looking for!

However, I did not see the setting on my theme panel.
Am I going to the right place?

post setting

Categories
Also not found in the Categories tab

Thank you

Post count: 27744

Hello,

The setting is in the post editor -> https://i.imgur.com/0mCbUkR.png

Thank you!

Post count: 9

Found it.

Thank you!

Post count: 2

Anamaria, I am having the same problem and need to find the source code in the code of the theme. Here is a video to describe why and give context.

https://www.loom.com/share/35bc57e60dbd448489b2f5f42438adab

Can you tell me where to find the source code?

Post count: 21065

Hello @theatlasnews!

Please check in the file wp-content\plugins\td-cloud-library\shortcodes\single\tdb_single_categories.php
You should find the entire logic of how the primary category is being displayed.

Thank you!

Post count: 2

I send that info for the PHP file to the developer and this was their response:

“Hello Stephen,

Sorry but that doesn’t help much.

We need the final code to output the selected primary category of your posts.

Do they have an example of how that would be implemented on the front end of the website?”

Post count: 21065

Hello!

Unfortunately, we do not have any example of how you can implement/modify the functionality of the primary category.
If you really want to change the way it’s working and looking, then this will require custom work which is not covered by the support team.
For customization and other services you can contact our custom work team here: https://tagdiv.com/premium-customization-services/

Thank you for understanding!

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