Plugin info

Total downloads: 1,490
Active installs: 10
Total reviews: 0
Average rating: 0
Support threads opened: 0
Support threads resolved: 0 (0%)
Available in: 1 language(s)
Contributors: 2
Last updated: 2/3/2020 (2157 days ago)
Added to WordPress: 9/1/2016 (9 years old)
Minimum WordPress version: 4.9.8
Tested up to WordPress version: 5.3.20
Minimum PHP version: f

Maintenance & Compatibility

Maintenance score

Possibly abandoned • Last updated 2157 days ago

20/100

Is Custom Posts Accordion abandoned?

Possibly abandoned (last update 2157 days ago).

Compatibility

Requires WordPress: 4.9.8
Tested up to: 5.3.20
Requires PHP: f

Similar & Alternatives

Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.

Superior FAQ
Rating 0.0/5 (0 reviews)Active installs 200
Content Blocks (Custom Post Widget)
Rating 4.9/5 (80 reviews)Active installs 20,000
WP CSV Exporter
Rating 3.0/5 (11 reviews)Active installs 10,000
Advanced Post Manager
Rating 3.5/5 (11 reviews)Active installs 5,000
Magical Posts Display – Elementor Advanced Posts widgets
Rating 4.3/5 (9 reviews)Active installs 3,000
Post My CF7 Form
Rating 4.8/5 (48 reviews)Active installs 2,000

Description

This plugin creates a basic accordion from custom posts.
Fully compatible with WPML, just translate your posts and use shortcodes as explained below.
The plugin currently does not support Woocommerce.

How to use

  1. To use this plugin you need custom post registered.
    You may check Post Types to see how to do it.

Example from WP Codex – for testing, copy and paste code below to theme functions.php

  add_action( 'init', 'create_post_type' );
  function create_post_type() {
    register_post_type( 'Accordion',
      array(
        'labels' => array(
          'name' => __( 'Accordions' ),
          'singular_name' => __( 'Accordion' )
        ),
        'public' => true,
        'has_archive' => true,
      )
    );
  }
  1. Add shortcode to page or post where you want to use accordion

If you used code above to create custom posts type you would use following shortcode:

[gw_accordion post_type="Accordion"]

Optionally, you may add CSS class

[gw_accordion post_type="Accordion" class="my_css_class"]

You can also add code to your theme


or with the CSS class


You also may set ordering, default is by ID and Ascending (ASC)

[gw_accordion post_type=”Accordion” class=”my_css_class” order_by=”title” order=”asc”]

Demo

  1. Check Demo

Known Issues

If your theme uses smooth scroll script like this one

        jQuery(function() {
      jQuery('a[href*="#"]:not([href="#"]').click(function() {
          if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
          var target = jQuery(this.hash);
          target = target.length ? target : jQuery('[name=' + this.hash.slice(1) +']');
          if (target.length) {
            jQuery('html,body').animate({
              scrollTop: target.offset().top
            }, 2000);
            return false;
          }
        }

      });

    });

You may need to change this line

 jQuery('a[href*="#"]:not([href="#"]')

To look like this

 jQuery('a[href*="#"]:not([href="#"], a:not([data-toggle])')

to avoid conflict

Installation

  1. Extract the downloaded .zip file and upload the extracted folder to the /wp-content/plugins directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress – click on “Activate” link below the plugin name

Frequently Asked Questions

Q: Does plugin support Woocommerce?
A: No, not right now.

Q: Can I put images in content to show in accordion?
A: Yes.

Q: Can I use the plugin in a multilanguage setup?
A: Yes. The plugin is tested and confirmed to work with WPML, all you ned to do is to translate your content.

Q: Does plugin support featured images?
A: No, not right now.

Review feed

No reviews available

Screenshots

No screenshots available

Changelog

1.0

  • Initial release

1.0.1

  • Updated to latest WP and fixed loop reset

2.0

  • Bootstrap is no longer required
  • Various fixes