How To: Display Text At End Of Post In Only Single View

Ever wanted to display some text at the end of your post that would only show up on the single post view? Perhaps a message to commenters? Well, WordPress has the ability built in. No need for any plugins.

The trick is to use the <!--more--> tag. However, I bet you’re thinking “but I don’t want a ‘Read More’ link!”. Well, once again, WordPress to the rescue.

For a few major versions now, you can do custom more text. You simply format it like this: <!--more Check out the rest of my post!-->. Or, to remove the link altogether while still leaving the feature intact, just use a space: <!--more -->.

Here’s an example:

This is a cool post. It has lots of interesting stuff.

More interesting stuff.

<!--more -->

This text will only show up on the single post view.

You can check it out in action as the following text will only show up in single post view:

Hey there. This is the “special” text. :)

3 thoughts on “How To: Display Text At End Of Post In Only Single View

  1. Pingback: Blog.Caspie.Net

Leave a Reply