- Home
- About
- Archives
- My WordPress Plugins
- Bulk Change Attachment Parent
- Clean Archives Reloaded
- Disable Trackbacks
- jQuery Lightbox For Native Galleries
- Local Time
- Regenerate Thumbnails
- Registered Users Only
- SyntaxHighlighter Evolved
- Viper’s Video Quicktags
- WordPress Admin Bar
- WordPress Download Counter
- WordPress.org One-Click Install
- YOURLS: Short URL Widget
- Other Plugins
- Discontinued Plugins
- Donate
- Contact
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.
| Print article | This entry was posted by Alex (Viper007Bond) on December 2nd, 2007 at 6:54 PM, and is filed under WordPress Code & Hacks. Follow any responses to this post through RSS 2.0. You can leave a response or pingback from your own site. |
about 2 years ago
I never knew about the custom “more” text. That’s a really neat trick.
about 1 year ago
great.