show custom taxonomy

Posted in: Newsmag
Post count: 58

Hi,
i create a custom taxonomy, so some posts have one ore more taxonomies selectd.

I would show these taxonomy with link to page under TAGS. Can you help me and provide code (and tell me where insert?)

thanks and regards

Post count: 58

wrong theme, need for Newsmag.

Post count: 35449

Hi zelatech, this is a little more complicate, first you need to identify the template that you are using on the page/article where you want to add the taxonomy, after that you’ll need to edit that template file and add the code for your taxonomy to be displayed (this depends on the code/plugin you are using). As an example you are using the taxonomies on articles and you have style 2, in this case you’ll need to edit those files:
– wp-content/plugins/td-composer/legacy/Newsmag/parts/single/loop-single-2.php
– wp-content/plugins/td-composer/legacy/Newsmag/parts/single/single_template_2.php
Also, some of those files can be set in a child theme, so those will not be changed when the theme will be updated – https://forum.tagdiv.com/newsmag-child-theme-support/
I hope this will help you!

Post count: 58

Hi Calin,

thanks for reply. I know procedure to modify files due to loop used.

how to update also mobile/AMP?

I’m asking you sample code to show under “tags” with same css/style (i’ll update taxonomy name after).

thanks

  • This reply was modified 2 years by zelatech.
Post count: 35449

Hello,

If is used the tagDiv Mobile theme plugin, then you’ll need to edit those file
– wp-content/plugins/td-composer/mobile/single.php
– wp-content/plugins/td-composer/mobile/loop.php

Unfortunately with the code to add your custom taxonomy I can not help, if is about a css for style, this is ok, we can do it, but custom code and changes in the theme files with custom code is a bit over what our support can offer, sorry!
As a hint, this is the code that I saw as example in some articles – https://pastebin.com/DLvm1Gir

I hope this will help you!

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