How To Remove “This entry was posted in” on WordPress single posts

In prior posts, I’ve commented that I’m a fan of clean, sleek design when it comes to WordPress themes.  I’ve added the “breadcrumb” style navigation to the top of my posts, which makes the “This Entry was Posted in <category>” and “Bookmark the Permalink” text at the bottom of each post redundant.

Here’s how to remove/modify both of these messages through a simple change to the content-single.php file.

Removing all text at the bottom of the single post

To make all of text disappear at the bottom of each post, all we need to do is comment out a few lines of code. Open your content-single.php file from your Twenty Eleven child theme and find the following lines of code:

We’ll use our HTML comment tag to comment out the PHP code that starts the line below this one, and close the comment tag at the end of the PHP script.  When done correctly, the code will look like this:

Hit save and you’re done, no more “This Entry was Posted in” or “Bookmark the Permalink” verbiage at the end of your posts!

Modifying the text at the bottom of the post to just keep the Post Tags

Perhaps you don’t want to remove the text entirely from the bottom of the post, but just want to leave the tags behind (for SEO purposes or whatever).  To do this, we’ll modify the same piece of code, but instead of commenting out all of the PHP code, we’ll comment out a smaller piece of code, then redefine the $utility_text  PHP variable.

The piece of code we want to comment out is shown below.  Note that because this code is within a PHP code block, we need to comment the code out using a “forward slash-star, star–backslash” comment tag:

With this code commented out, we can now define the $utility_text variable as we want.  To show just the text “Tagged: <tag list>”, add the following code just below the commented code above:

$utility_text = _( 'Tagged: %2$s');

Once you hit save, the bottom of each of your single posts will show the tags that the post belongs to.


  1. becrobbie says:

    Thank you so much for this post. Even in 2013 this post has saved me from hours of frustration!

%d bloggers like this: