Show tags to posts

Posted in: Newsmag
Post count: 18

Hello there,

first of all, I’ve search on other topics before creating this thread and didn’t find anything that could help me. Most of them are with removing the tags, but not adding.

I’ve edited the file includes/wp_booster/td_module.php and added this function
http://clients.whatislanguage.co.uk/hao/%E8%B4%AD%E7%89%A9/%E5%8D%A1%E8%BF%AA%E5%A4%AB%E8%B4%AD%E7%89%A9/%E5%8D%A1%E8%BF%AA%E5%A4%AB%E4%B8%AD%E5%BF%83%E5%B8%82%E5%9C%BA-cardiff-central-market/

and then called it on td_module_1.php from modules. This worked on “Latest Articles”, but then I’ve added some posts under the main menu, which seems to have the same td_module_1.php template. But the tags are not displayed anymore, even though the posts have tags.

What am I missing? Is there a better solution for displaying tags and style them?

Thank you very much!

Post count: 6535

Hi

You will need a custom function which get post id as parameter in order to display tags on blocks or in mega menu. Add this code: http://pastebin.com/9tum1brx in td_module.php: http://screencast.com/t/8WEQxscsu then call the function in td_module_mega_menu.php file like here: http://screencast.com/t/2yerRhrJC
Also you have to use this css in theme panel > custom code > custom css: http://screencast.com/t/EQSYQSxQUih

.tags-mega-menu ul {
display: block;
margin-left: 18px;
}
.tags-mega-menu .td-tags li {
width: auto!important;
}

Hope this helps.
Thanks!

Post count: 18

Hi Andrei,

thank you, I will try and let you know after.

Post count: 18

Hello Andrei,

the action above did not work for me. Check this screenshot: http://i.imgur.com/DYcjgc1.png. I meant for these posts, not the “mega menu”.

As I said above, what I did in td_module_1.php worked, but not for these (from screenshot). They are same type, posts.

Why is that?

Thank you!

Post count: 6535

Hi

The above code will work for any module, I pointed mega menu only as an example how to call the function. To display tags on modules just call the function in the file corresponding with the module used: http://screencast.com/t/odbhQ3jl2vl

Thanks!

Post count: 18

Hi Andrei,

that made the trick, thank you ! 😀

PS: Mersi mult.

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