{"id":14672,"date":"2011-08-29T15:37:22","date_gmt":"2011-08-29T15:37:22","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/single-shortcode\/"},"modified":"2011-09-11T15:25:11","modified_gmt":"2011-09-11T15:25:11","slug":"single-shortcode","status":"publish","type":"plugin","link":"https:\/\/kea.wordpress.org\/plugins\/single-shortcode\/","author":8275426,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.1.1","stable_tag":"trunk","tested":"3.2.1","requires":"2.5","requires_php":"","requires_plugins":"","header_name":"single shortcode","header_author":"attosoft","header_description":"","assets_banners_color":"","last_updated":"2011-09-11 15:25:11","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/attosoft.info\/blog\/en\/single-shortcode\/","header_author_uri":"http:\/\/attosoft.info\/en\/","rating":0,"author_block_rating":0,"active_installs":10,"downloads":2948,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1395,1244,80,23364,16359],"plugin_category":[43],"plugin_contributors":[79424],"plugin_business_model":[],"class_list":["post-14672","plugin","type-plugin","status-publish","hentry","plugin_tags-excerpt","plugin_tags-hide","plugin_tags-shortcode","plugin_tags-single-page","plugin_tags-single-post","plugin_category-customization","plugin_contributors-attosoft","plugin_committers-attosoft"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/single-shortcode.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Using single shortcode plugin, you can hide specified content from <a href=\"http:\/\/codex.wordpress.org\/Glossary#Excerpt\">excerpt<\/a> of post. The content enclosed with [single] tag is output <strong>only<\/strong> if single page is displayed. It's useful for hiding the following items from excerpt.<\/p>\n\n<ul>\n<li>table of contents<\/li>\n<li>footnotes<\/li>\n<li>relative links, etc.<\/li>\n<\/ul>\n\n<p>Installed this plugin, you can use the following shortcodes.<\/p>\n\n<ul>\n<li>[single] shortcode outputs content <strong>only<\/strong> if single page is displayed<\/li>\n<li>[excerpt] shortcode outputs content <strong>only<\/strong> if excerpt is displayed<\/li>\n<\/ul>\n\n<h4>Usage<\/h4>\n\n<p>Enclose content with [single] tag.<\/p>\n\n<pre><code>[single] ... [\/single]\n\n[single]\n ...\n[\/single]\n<\/code><\/pre>\n\n<p>You can use [excerpt] tag as necessary.<\/p>\n\n<pre><code>[excerpt] ... [\/excerpt]\n\n[excerpt]\n ...\n[\/excerpt]\n<\/code><\/pre>\n\n<h4>Example<\/h4>\n\n<p>If you write the following code,<\/p>\n\n<pre><code>&lt;p&gt;paragraph1&lt;\/p&gt;\n\n[single]\n&lt;h5&gt;Index&lt;\/h5&gt;\n&lt;ul&gt;\n    &lt;li&gt;&lt;a href=\"#item1\"&gt;item1&lt;\/a&gt;&lt;\/li&gt;\n    &lt;li&gt;&lt;a href=\"#item2\"&gt;item2&lt;\/a&gt;&lt;\/li&gt;\n    &lt;li&gt;&lt;a href=\"#item3\"&gt;item3&lt;\/a&gt;&lt;\/li&gt;\n&lt;\/ul&gt;\n[\/single]\n\n&lt;p&gt;paragraph2&lt;\/p&gt;\n<\/code><\/pre>\n\n<p>the excerpt is displayed as follows. (Index is NOT output)<\/p>\n\n<blockquote>\n  <p>paragraph1<\/p>\n  \n  <p>paragraph2<\/p>\n<\/blockquote>\n\n<p>And single page is displayed as follows. (Index is output)<\/p>\n\n<blockquote>\n  <p>paragraph1<\/p>\n  \n  <strong>Index<\/strong>\n  \n  <ul>\n  <li><a href=\"#item1\">item1<\/a><\/li>\n  <li><a href=\"#item2\">item2<\/a><\/li>\n  <li><a href=\"#item3\">item3<\/a><\/li>\n  <\/ul>\n  \n  <p>paragraph2<\/p>\n<\/blockquote>\n\n<h4>Links<\/h4>\n\n<ul>\n<li><a href=\"http:\/\/attosoft.info\/en\/\">Homepage (attosoft.info)<\/a> &#091;<a href=\"http:\/\/attosoft.info\/\">Japanese<\/a>&#093;<\/li>\n<li><a href=\"http:\/\/attosoft.info\/blog\/en\/single-shortcode\/\">single shortcode Plugin Official Site<\/a> &#091;<a href=\"http:\/\/attosoft.info\/blog\/single-shortcode\/\">Japanese<\/a>&#093;<\/li>\n<li>ref. <a href=\"http:\/\/codex.wordpress.org\/Function_Reference\/is_single\">Function Reference \/ is_single() (WordPress Codex)<\/a><\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin folder to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Where is excerpt displayed?<\/dt>\n<dd><ul>\n<li>Blog homepage (latest posts)<\/li>\n<li>Archive, Category, Tag page<\/li>\n<li>Search result<\/li>\n<li>Posts feed (RSS\/Atom)<\/li>\n<\/ul>\n\n<p>&#042; Please see <a href=\"http:\/\/codex.wordpress.org\/Glossary#Excerpt\">Glossary<\/a> for more information.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.1.1<\/h4>\n\n<ul>\n<li>[excerpt] shortcode also outputs content in search results and posts feed (RSS\/Atom)<\/li>\n<\/ul>\n\n<h4>0.1<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"[single] shortcode outputs content only if single page is displayed. Useful for hiding table of contents, footnotes, relative links from excerpt.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/14672","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=14672"}],"author":[{"embeddable":true,"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/attosoft"}],"wp:attachment":[{"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=14672"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=14672"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=14672"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=14672"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=14672"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=14672"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}