Adding a custom banner per tag
-
Hello,
I have a question about how to make a custom php code.
This is my php code that calls the tags:
<?php if (get_the_tags()) the_tags(__('Tags: '), ', '); ?>
And what I want is : if a defined tag (sports) exists in my post tags, include a sport banner, if another defined tag (life style) exists in my post tags, include a life style banner.
I really need a help, please!
Thank you in advance!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Adding a custom banner per tag’ is closed to new replies.