single shortcode
[single] shortcode outputs content only if single page is displayed. Useful for hiding table of contents, footnotes, relative links from excerpt.
Plugin info
Maintenance & Compatibility
Maintenance score
Possibly abandoned • Last updated 5225 days ago
Is single shortcode abandoned?
Possibly abandoned (last update 5225 days ago).
Compatibility
Similar & Alternatives
Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.
Description
Using single shortcode plugin, you can hide specified content from excerpt of post. The content enclosed with [single] tag is output only if single page is displayed. It’s useful for hiding the following items from excerpt.
- table of contents
- footnotes
- relative links, etc.
Installed this plugin, you can use the following shortcodes.
- [single] shortcode outputs content only if single page is displayed
- [excerpt] shortcode outputs content only if excerpt is displayed
Usage
Enclose content with [single] tag.
[single] ... [/single]
[single]
...
[/single]
You can use [excerpt] tag as necessary.
[excerpt] ... [/excerpt]
[excerpt]
...
[/excerpt]
Example
If you write the following code,
paragraph1
[single]
Index
[/single]
paragraph2
the excerpt is displayed as follows. (Index is NOT output)
paragraph1
paragraph2
And single page is displayed as follows. (Index is output)
paragraph1
Index
paragraph2
Links
Installation
- Upload the plugin folder to the
/wp-content/plugins/directory - Activate the plugin through the ‘Plugins’ menu in WordPress
Frequently Asked Questions
Where is excerpt displayed?
- Blog homepage (latest posts)
- Archive, Category, Tag page
- Search result
- Posts feed (RSS/Atom)
* Please see Glossary for more information.
Review feed
Screenshots
Changelog
0.1.1
- [excerpt] shortcode also outputs content in search results and posts feed (RSS/Atom)
0.1
- Initial release