Have you ever wanted to know how to add Tags to each Post within your WordPress theme? If you theme does not have it built-in, there is no need for a plugin, so please take a moment to look this quick tutorial over because with just a bit of understanding of what is going on, you can look like a master at PHP and developing.
There are many ways to do the following steps (I actually prefer using FTP, but I am going to assume in this tutorial that you do not know what FTP means, and will show you how to do everything within the WordPress Dashboard.
In this example I am going to use the really clean coded free WordPress theme called Noteblog. Nicely coded, and generally speaking fast loading theme.
Step #1: Login to WordPress. If you do not know how to do this, stop and contact somebody that can help you – I am likely available if you contact me…
Step #2: Are you logged into your WordPress Dashboard now? Yes? Awesomesauce!
Go to the left navigation and look for
Appearance >> Editor
From there on the Right side of the screen look for
template-parts
Click on it and you will see a few files drop down under it. Look for
content.php
Step #3: Here’s where the magic happens, so pay attention.
Look for the code at the bottom that says
</div<!-- .enter-content -->
</article><!-- #post-## -->
At that point you will be adding some very common code between
</div><!-- .entry-content -->
and
</article><!-- #post-## -->
to actually make tags display on your Posts, and be SEO ready.
So the default method of the WordPress core code (which can be found at the WordPress Codex here)
the_tags
code would look something like this:
</div><!-- .entry-content --> <p><?php the_tags(); ?></p> </article><!-- #post-## -->
and would display like the following on your site:
Don’t forget to look at the many variations of how you can use the_tags function, and you can really impress your friends and family.
1 comment
Debbie Schallock | February 4, 2018
Thank you Kevin for an easy tutorial. I just realized my posts were missing tags when I recently switched to the Noteblog theme. When I learned coding would be involved, I got nervous. Your blog post here made it easy and painless. Thank you for sharing your insight and step-by-step dirctions!