{"id":1396,"date":"2011-10-11T08:07:57","date_gmt":"2011-10-11T08:07:57","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/child-pages-shortcode\/"},"modified":"2015-04-26T13:01:38","modified_gmt":"2015-04-26T13:01:38","slug":"child-pages-shortcode","status":"publish","type":"plugin","link":"https:\/\/id.wordpress.org\/plugins\/child-pages-shortcode\/","author":175046,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.9.3","stable_tag":"1.9.3","tested":"4.2.39","requires":"3.8","requires_php":"","requires_plugins":"","header_name":"Child Pages Shortcode","header_author":"Takayuki Miyauchi","header_description":"","assets_banners_color":"1b95bb","last_updated":"2017-11-28 13:26:21","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/miya0001\/child-pages-shortcode","header_author_uri":"http:\/\/wpist.me\/","rating":4.6,"author_block_rating":0,"active_installs":5000,"downloads":94654,"num_ratings":20,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog","faq"],"tags":[],"upgrade_notice":[],"ratings":{"1":2,"2":0,"3":0,"4":1,"5":17},"assets_icons":[],"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":"526878","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1.0","0.2.0","0.3.0","0.4.0","0.5.0","0.6.0","0.7.0","0.8.0","0.9.0","0.9.1","1.0.1","1.1.1","1.1.2","1.1.3","1.1.4","1.2.0","1.3.0","1.4.0","1.5.0","1.5.1","1.6.0","1.7.0","1.8.0","1.9.0","1.9.1","1.9.2","1.9.3"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[80],"plugin_category":[43],"plugin_contributors":[78380],"plugin_business_model":[],"class_list":["post-1396","plugin","type-plugin","status-publish","hentry","plugin_tags-shortcode","plugin_category-customization","plugin_contributors-miyauchi","plugin_committers-miyauchi"],"banners":{"banner":"https:\/\/ps.w.org\/child-pages-shortcode\/assets\/banner-772x250.png?rev=526878","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/child-pages-shortcode_1b95bb.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>You can use shortcode for display child pages from the page.<\/p>\n\n<p><a href=\"https:\/\/github.com\/miya0001\/child-pages-shortcode\">This plugin maintained on GitHub.<\/a><\/p>\n\n<h4>Some features<\/h4>\n\n<ul>\n<li>This plugin will add shortcode <code>[child_pages]<\/code> display child pages.<\/li>\n<li>You can customize default HTML template on your plugin.<\/li>\n<li>This plugin will be able to \"excerpt\" to the pages.<\/li>\n<\/ul>\n\n<h4>Example<\/h4>\n\n<p>Display child pages of the current page.\n    [child_pages width=\"33%\"]<\/p>\n\n<h4>Args<\/h4>\n\n<ul>\n<li>id - ID of page (Optional)<\/li>\n<li>size - Post thumbnail size. e.g. 'thumbnail' or 'large'<\/li>\n<li>width - width of block for child pages.<\/li>\n<li>disable_shortcode - Shortcode not work in the template if set true.<\/li>\n<li>disable_excerpt_filters - filters not work for the excerpt if set true.<\/li>\n<\/ul>\n\n<h4>filter hooks example<\/h4>\n\n<p>Filter for query_posts() query.<\/p>\n\n<pre><code>&lt;?php\n    \/\/ default args\n    $args = array(\n        'post_status' =&gt; 'publish',\n        'post_type' =&gt; 'page',\n        'post_parent' =&gt; $id_for_the_post,\n        'orderby' =&gt; 'menu_order',\n        'order' =&gt; 'ASC',\n        'nopaging' =&gt; true,\n    );\n\n    add_filters('child-pages-shortcode-query', \"my_query\");\n    function my_query($args) {\n        \/\/\n        \/\/ some code here\n        \/\/\n        return $args;\n    }\n?&gt;\n<\/code><\/pre>\n\n<p>Filter for default template.<\/p>\n\n<pre><code>&lt;?php\n    add_filter(\"child-pages-shortcode-template\", \"my_template\");\n    function my_template($template) {\n        return '&lt;div class=\"%class%\"&gt;&lt;a href=\"%post_url%\"&gt;%post_thumb%&lt;\/a&gt;&lt;\/div&gt;';\n    }\n?&gt;\n<\/code><\/pre>\n\n<p>Filter for stylesheet URI.<\/p>\n\n<pre><code>&lt;?php\n    add_filter(\"child-pages-shortcode-stylesheet\", \"my_style\");\n    function my_style($url) {\n        return 'http:\/\/example.com\/path\/to\/style.css';\n    }\n?&gt;\n<\/code><\/pre>\n\n<p>Default Template<\/p>\n\n<pre><code>&lt;div id=\"child_page-%post_id%\" class=\"child_page\" style=\"width:%width%;\"&gt;\n    &lt;div class=\"child_page-container\"&gt;\n        &lt;div class=\"post_thumb\"&gt;&lt;a href=\"%post_url%\"&gt;%post_thumb%&lt;\/a&gt;&lt;\/div&gt;\n        &lt;div class=\"post_content\"&gt;\n            &lt;h4&gt;&lt;a href=\"%post_url%\"&gt;%post_title%&lt;\/a&gt;&lt;\/h4&gt;\n            &lt;div class=\"post_excerpt\"&gt;%post_excerpt%&lt;\/div&gt;\n        &lt;\/div&gt;\n    &lt;\/div&gt;\n&lt;\/div&gt;\n<\/code><\/pre>\n\n<p>Template valiables<\/p>\n\n<ul>\n<li>%post_id% - ID of the Page<\/li>\n<li>%width% - Width of block for single page<\/li>\n<li>%post_url% - Page permalink<\/li>\n<li>%post_thumb% -  for Post thubmail<\/li>\n<li>%post_title% - Page title<\/li>\n<li>%post_excerpt% - Page excerpt<\/li>\n<\/ul>\n\n<h4>Support<\/h4>\n\n<ul>\n<li>http:\/\/wpist.me\/wp\/child-pages-shortcode\/ (en)<\/li>\n<li>http:\/\/firegoby.theta.ne.jp\/wp\/child-pages-shortcode (ja)<\/li>\n<\/ul>\n\n<h4>Contributors<\/h4>\n\n<ul>\n<li><a href=\"http:\/\/wpist.me\/\">Takayuki Miyauchi<\/a><\/li>\n<\/ul>\n\n<h3>Credits<\/h3>\n\n<p>This plug-in is not guaranteed though the user of WordPress can freely use this plug-in free of charge regardless of the purpose.\nThe author must acknowledge the thing that the operation guarantee and the support in this plug-in use are not done at all beforehand.<\/p>\n\n<h3>Contact<\/h3>\n\n<ul>\n<li>http:\/\/wpist.me\/<\/li>\n<li><a href=\"https:\/\/twitter.com\/#!\/wpist_me\">@wpist_me<\/a><\/li>\n<\/ul>\n\n<!--section=installation-->\n<ul>\n<li>A plug-in installation screen is displayed on the WordPress admin panel.<\/li>\n<li>It installs it in <code>wp-content\/plugins<\/code>.<\/li>\n<li>The plug-in is made effective.<\/li>\n<\/ul>\n\n<!--section=changelog-->\n<h4>1.9.3<\/h4>\n\n<ul>\n<li>Tested on WordPress 4.2.<\/li>\n<\/ul>\n\n<h4>1.9.2<\/h4>\n\n<ul>\n<li>Tested on WordPress 4.1.<\/li>\n<\/ul>\n\n<h4>1.9.1<\/h4>\n\n<ul>\n<li>bug fix - js not found<\/li>\n<\/ul>\n\n<h4>1.9.0<\/h4>\n\n<ul>\n<li>bug fix - css syntax error<\/li>\n<\/ul>\n\n<h4>1.7.0<\/h4>\n\n<ul>\n<li>bug fix - missing wp_reset_postdata()<\/li>\n<\/ul>\n\n<h4>1.6.0<\/h4>\n\n<ul>\n<li>bug fix<\/li>\n<\/ul>\n\n<h4>1.3.0<\/h4>\n\n<ul>\n<li>setup_postdata() added.<\/li>\n<\/ul>\n\n<h4>1.2.0<\/h4>\n\n<ul>\n<li>bug fix<\/li>\n<\/ul>\n\n<h4>1.1.4<\/h4>\n\n<ul>\n<li>bug fix on non-responsive theme<\/li>\n<\/ul>\n\n<h4>1.1.3<\/h4>\n\n<ul>\n<li>Bug fix<\/li>\n<\/ul>\n\n<h4>1.1.2<\/h4>\n\n<ul>\n<li>Bug fix<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Add filter hook \"child-pages-shortcode-output\"<\/li>\n<\/ul>\n\n<h4>0.9.0<\/h4>\n\n<ul>\n<li>Add filter hook \"child-pages-shortcode-query\"<\/li>\n<li>Load stylesheet by wp_enqueue_style()<\/li>\n<\/ul>\n\n<h4>0.8.0<\/h4>\n\n<ul>\n<li>Add style \"max-width:100%\".<\/li>\n<\/ul>\n\n<h4>0.4.0<\/h4>\n\n<ul>\n<li>add <code>add_post_type_support(\"page\", \"excerpt\");<\/code><\/li>\n<\/ul>\n\n<h4>0.3.0<\/h4>\n\n<ul>\n<li>Adapt to no-image.<\/li>\n<\/ul>\n\n<h4>0.1.0<\/h4>\n\n<ul>\n<li>The first release.<\/li>\n<\/ul>\n\n<!--section=faq-->\n<dl>\n<dt>Installation Instructions<\/dt>\n<dd><ul>\n<li>A plug-in installation screen is displayed on the WordPress admin panel.<\/li>\n<li>It installs it in <code>wp-content\/plugins<\/code>.<\/li>\n<li>The plug-in is made effective.<\/li>\n<\/ul><\/dd>\n\n<\/dl>","raw_excerpt":"You can use shortcode for display child pages from the page.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/id.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/1396","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/id.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/id.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/id.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=1396"}],"author":[{"embeddable":true,"href":"https:\/\/id.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/miyauchi"}],"wp:attachment":[{"href":"https:\/\/id.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=1396"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/id.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=1396"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/id.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=1396"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/id.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=1396"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/id.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=1396"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/id.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=1396"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}