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






