Hi,
We are using Block 18 on our new designed website. http://startupdostu.com
We have some custom Tag Taxonomies for our posts and if those custom tag taxonomies are not empty then we want to show those tags at the end of Module 10 Excerpts. Probably we need to change the source code or create a new copy of Block 18 with different name using also a different custom copy of Module 10. But we don’t know how to do this? Could you please show us the way to do this?
thank you very much.
Ahmet Usta
Hi,
You would have to make the change you need in the module file that you mention, after the excerpt section
– https://www.screencast.com/t/jaUoVMNXU
Modules are not supposed to display other elements besides the default ones, so this may not work properly.
Blocks and modules can be customized through a child theme, so you do not loose the modifications when the theme is updated
– https://forum.tagdiv.com/the-child-theme-support-tutorial/
Thanks
Thank you very much. I exactly installed the child theme and created the module you mentioned under the right folder.
According to my tests child theme and module customizations work well. But on the other hand I am using this line of code to get custom taxonomies;
<?php echo get_the_term_list( $post->ID, ‘post_tag’, ‘<p>Şirket: ‘, ‘, ‘, ‘</p>’); ?>
Actually I used first the name of my custom taxonomy. But I am not be able to get any output. then I changed it to something wrong taxonomy name. In this case the output is broken. So I am sure I am using the right name for my custom taxonomy. But even with the default tags (post_tag) nothing renders out. Probably the problem is related to “$post->ID” but I am not sure because I am not well trained programmer just someone who can read a little bit code and find the way with blind eyes 🙂
Where is the problem? Thank you very much.
Finally figured it out by reading lots of code on other php pages. Here is the working code line. Just changed it to English definitions to be understand better.
<?php echo get_the_term_list( $this->post->ID, ‘tag_company_name’, ‘<p>Company: ‘, ‘, ‘, ‘</p>’); ?>