Terms in module

Posted in: Newsmag
Post count: 10

Hi, I need to insert the picture in loop td_module_11.php, but depending on the tag (term)


<?php if ( has_term( 'hot', $this->post->ID  )  ): ?>
<img src="" />
<?php  endif; ?>

This does not work, Do you have a suggestion

  • This topic was modified 11 years by goranCPG.
Post count: 6600

Hi,

Use has_tag instead, like this: http://screencast.com/t/GslEQgXhfrhttp://pastebin.com/363F2xmT

Thanks

Post count: 10

Thanks Lucian
its work

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