Advertisement
kobial8

Tags in Action!

Feb 21st, 2015
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.25 KB | None | 0 0
  1. Step 01: Observe the static HTML Tags:
  2. <p class="tag-container">Tags: <a href="">tag 1</a>, <a href="">tag 2</a></p>
  3.  
  4. Step02: Dynamic tags using the following code:
  5. <?php if(has_tag()) : ?>
  6.     <p class="tag-container"><?php the_tags(); ?></p>
  7. <?php endif ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement