var _gaq = _gaq || []; _gaq.push([\'_setAccount\', \'UA-13211647-1\']); _gaq.push([\'_trackPageview\']); (function() { var ga = document.createElement(\'script\'); ga.type = \'text/javascript\'; ga.async = true; ga.src = (\'https:\' == document.location.protocol ? \'https://ssl\' : \'http://www\') + \'.google-analytics.com/ga.js\'; var s = document.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(ga, s); })();
Wish to be a programmer rather than a coder
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.
Installed this plugin, you can use the following shortcodes.
Enclose content with [single] tag.
[single] ... [/single]
[single] ... [/single]
You can use [excerpt] tag as necessary.
[excerpt] ... [/excerpt]
[excerpt] ... [/excerpt]
If you write the following code,
<p>paragraph1</p> [single] <h5>Index</h5> <ul> <li><a href="#item1">item1</a></li> <li><a href="#item2">item2</a></li> <li><a href="#item3">item3</a></li> </ul> [/single] <p>paragraph2</p>
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
* Please see Glossary for more information.
Any comments will be very helpful and appreciated. Thank you for your support!
[…] single shortcode 公式サイト […]