O'Reilly logo

WordPress Responsive Theme Design by Dejan Markovic

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Tags

We have decided to display tags in a box just after the content.

In the last part of this chapter, we are going to work on navigation in post templates, and the code for this is located in the topcat_entry_footer() function, which is also located in the template-tags.php file.

Tip

Topcat_entry_footer() is the function that handles the footer for a single post, not a website footer.

I have changed the tag functionality with my own solution in the topcat_entry_footer() function of the template-tags.php file, and it looks like this:

if ( 'post' == get_post_type() ) { $posttags = get_the_tags(); echo '<div class="tags-links">Tags:<span>&nbsp;&nbsp;'; if ($posttags) { foreach($posttags as $tag) { echo '<i class=" fa fa-tag"></i>&nbsp;&nbsp' . '<a ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required