{"id":50640,"date":"2016-09-01T15:18:41","date_gmt":"2016-09-01T15:18:41","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/custom-post-accordion\/"},"modified":"2020-02-03T10:14:14","modified_gmt":"2020-02-03T10:14:14","slug":"custom-post-accordion","status":"publish","type":"plugin","link":"https:\/\/az.wordpress.org\/plugins\/custom-post-accordion\/","author":14158621,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.0","stable_tag":"trunk","tested":"5.3.21","requires":"4.9.8","requires_php":"","requires_plugins":"","header_name":"Custom Posts Accordion","header_author":"Darko Gerguric","header_description":"","assets_banners_color":"","last_updated":"2020-02-03 10:14:14","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.me\/DarkoG","header_plugin_uri":"http:\/\/geniusworks.xyz","header_author_uri":"http:\/\/geniusworks.xyz","rating":0,"author_block_rating":0,"active_installs":10,"downloads":1611,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"":"<p>Not available.<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1741,3989],"plugin_category":[43],"plugin_contributors":[178006],"plugin_business_model":[],"class_list":["post-50640","plugin","type-plugin","status-publish","hentry","plugin_tags-accordion","plugin_tags-custom-post","plugin_category-customization","plugin_contributors-darkogerguric","plugin_committers-darkogerguric"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/custom-post-accordion.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>This plugin creates a basic accordion from custom posts.\nFully compatible with WPML, just translate your posts and use shortcodes as explained below.\nThe plugin currently does not support Woocommerce.<\/p>\n\n<h3>How to use<\/h3>\n\n<ol>\n<li>To use this plugin you need custom post registered.\nYou may check <a href=\"https:\/\/codex.wordpress.org\/Post_Types\" title=\"Post Types\">Post Types<\/a> to see how to do it.<\/li>\n<\/ol>\n\n<p>Example from WP  Codex - for testing, copy and paste code below to theme functions.php<\/p>\n\n<pre><code>  add_action( 'init', 'create_post_type' );\n  function create_post_type() {\n    register_post_type( 'Accordion',\n      array(\n        'labels' =&gt; array(\n          'name' =&gt; __( 'Accordions' ),\n          'singular_name' =&gt; __( 'Accordion' )\n        ),\n        'public' =&gt; true,\n        'has_archive' =&gt; true,\n      )\n    );\n  }\n<\/code><\/pre>\n\n<ol>\n<li>Add shortcode to page or post where you want to use accordion<\/li>\n<\/ol>\n\n<p>If you used code above to create custom posts type you would use following  shortcode:<\/p>\n\n<pre><code>[gw_accordion post_type=\"Accordion\"]\n<\/code><\/pre>\n\n<p>Optionally, you may add CSS class<\/p>\n\n<pre><code>[gw_accordion post_type=\"Accordion\" class=\"my_css_class\"]\n<\/code><\/pre>\n\n<p>You can also add code to your theme<\/p>\n\n<pre><code>&lt;?php echo do_shortcode('[gw_accordion post_type=\"Accordion\"');?&gt;\n<\/code><\/pre>\n\n<p>or with the CSS class<\/p>\n\n<pre><code>&lt;?php echo do_shortcode('[gw_accordion post_type=\"Accordion\" class=\"my_css_class\"]');?&gt;\n<\/code><\/pre>\n\n<p>You also may set ordering, default is by ID and Ascending (ASC)<\/p>\n\n<p>[gw_accordion post_type=\"Accordion\" class=\"my_css_class\" order_by=\"title\" order=\"asc\"]<\/p>\n\n<h3>Demo<\/h3>\n\n<ol>\n<li><a href=\"https:\/\/plugins.darkog.pro\/custom-post-accordion-demo\/\">Check Demo<\/a><\/li>\n<\/ol>\n\n<h3>Known Issues<\/h3>\n\n<p>If your theme uses smooth scroll script like this one<\/p>\n\n<pre><code>        jQuery(function() {\n      jQuery('a[href*=\"#\"]:not([href=\"#\"]').click(function() {\n          if (location.pathname.replace(\/^\\\/\/,'') == this.pathname.replace(\/^\\\/\/,'') &amp;&amp; location.hostname == this.hostname) {\n          var target = jQuery(this.hash);\n          target = target.length ? target : jQuery('[name=' + this.hash.slice(1) +']');\n          if (target.length) {\n            jQuery('html,body').animate({\n              scrollTop: target.offset().top\n            }, 2000);\n            return false;\n          }\n        }\n\n      });\n\n    });\n<\/code><\/pre>\n\n<p>You may need to change this line<\/p>\n\n<pre><code> jQuery('a[href*=\"#\"]:not([href=\"#\"]')\n<\/code><\/pre>\n\n<p>To look like this<\/p>\n\n<pre><code> jQuery('a[href*=\"#\"]:not([href=\"#\"], a:not([data-toggle])')\n<\/code><\/pre>\n\n<p>to avoid conflict<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Extract the downloaded .zip file and upload the extracted folder to the <code>\/wp-content\/plugins<\/code> directory, or install the plugin through the WordPress plugins screen directly.<\/li>\n<li>Activate the plugin through the 'Plugins' screen in WordPress - click on \"Activate\" link below the plugin name<\/li>\n<\/ol>\n\n<!--section=faq-->\n<p>Q: Does plugin support Woocommerce?\nA: No, not right now.<\/p>\n\n<p>Q: Can I put images in content to show in accordion?\nA: Yes.<\/p>\n\n<p>Q: Can I use the plugin in a multilanguage setup?\nA: Yes. The plugin is tested and confirmed to work with WPML, all you ned to do is to translate your content.<\/p>\n\n<p>Q: Does plugin support featured images?\nA: No, not right now.<\/p>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Updated to latest WP and fixed loop reset<\/li>\n<\/ul>\n\n<h4>2.0<\/h4>\n\n<ul>\n<li>Bootstrap is no longer required<\/li>\n<li>Various fixes<\/li>\n<\/ul>","raw_excerpt":"This plugin creates Bootstrap accordion form custom posts.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/az.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/50640","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/az.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/az.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/az.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=50640"}],"author":[{"embeddable":true,"href":"https:\/\/az.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/dakiriki"}],"wp:attachment":[{"href":"https:\/\/az.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=50640"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/az.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=50640"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/az.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=50640"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/az.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=50640"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/az.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=50640"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/az.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=50640"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}