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.
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!
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?
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!
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?”
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!

