Title: Collapsing
Last modified: August 22, 2016

---

# Collapsing

 *  Resolved [Mark Ransome](https://wordpress.org/support/users/janmarlife/)
 * (@janmarlife)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/collapsing/)
 * Hi there,
 * Great plugin, however when I click on one topic, everything opens or closes. 
   I’m not sure if I have set it up right. I want it so that when you click a topic
   only that one opens, then when you click another, the previous one closes etc.
 * You can see what I mean if you go to my FAQ page:
 * [http://www.zoomladirectory.com/frequently-asked-questions/](http://www.zoomladirectory.com/frequently-asked-questions/)
 * Here is my current code:
 * [expand title=”Is This Website Really Free?” rel=”animal-highlander” tag=”h4″
   id=”title”]Yes. It is totally free to join and post your business, organization
   or simply a place of interest. However, we do reserve the right to charge in 
   the future. Simply register for your free account [here](http://www.zoomladirectory.com/register/).[/
   expand]
 * [expand title=”Are My E-mail Details Safe?” rel=”animal-highlander” tag=”h4″ 
   id=”title”]Yes. We respect your privacy and we do not share any of your details
   with any third party. For full details about our Privacy Policy, you can read
   them [here](http://www.zoomladirectory.com/privacy-policy/).[/expand]
 * [expand title=”How Many Listings Can I Post?” rel=”animal-highlander” tag=”h4″
   id=”title”]Once you have registered, you can post as many listings as you wish,
   all we ask when posting a listing is that all of the information contained in
   your listing is correct and up to date.[/expand]
 * [expand title=”How Many Images Can I Upload?” rel=”animal-highlander” tag=”h4″
   id=”title”]You can upload as many images per listing as you wish. Each image 
   has a limit of 5MB.[/expand]
 * [expand title=”What Are Tags?” rel=”animal-highlander” tag=”h4″ id=”title”]Tags
   are keywords related to your listing, for example, if your listing is about dog
   training then some tags might be, “Dog Training, Training Dogs, Dogs”. Tags help
   people search for what they are looking for so the more relevant your tags are,
   the better! Make sure you separate your tags with a comma and no more than 40
   characters.[/expand]
 * Kind regards,
 * Mark Ransome.
 * p.s.
 * I am thinking of upgrading to your Pro version!
 * [https://wordpress.org/plugins/jquery-collapse-o-matic/](https://wordpress.org/plugins/jquery-collapse-o-matic/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Baden](https://wordpress.org/support/users/baden03/)
 * (@baden03)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/collapsing/#post-5373989)
 * janmarlife:
    the problem is very simple: your id tags must be unique. you can
   either: a) remove the id attribute all together:
 *     ```
       [expand title="What Are Tags?" rel="animal-highlander" tag="h4"]Tags are keywords....[/expand]
       ```
   
 * no recommend if you have more than 5 expand elements, as the id’s will be randomly
   assigned and the more elements the greater the probability that an id will be
   duplicated.
    b) assign a custom id:
 *     ```
       [expand title="What Are Tags?" id="about_tags" rel="animal-highlander" tag="h4"]Tags are keywords....[/expand]
       ```
   
 * Please let us know if that resolves the issue for you.
 * It’s great that you are thinking about going pro! We just released a new add-
   on plugin called [Collapse Commander](http://plugins.twinpictures.de/premium-plugins/collapse-commander/)
   that might be very useful to you. it would reduce all of that code you posted
   to something like:
 *     ```
       [expand cid="1" /]
       [expand cid="2" /]
       [expand cid="3" /]
       [expand cid="4" /]
       [expand cid="5" /]
       ```
   
 * and provide an interface to manage all of the expand elements used throughout
   your entire site.

Viewing 1 replies (of 1 total)

The topic ‘Collapsing’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/jquery-collapse-o-matic_fffeff.svg)
 * [Collapse-O-Matic](https://wordpress.org/plugins/jquery-collapse-o-matic/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jquery-collapse-o-matic/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jquery-collapse-o-matic/)
 * [Active Topics](https://wordpress.org/support/plugin/jquery-collapse-o-matic/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jquery-collapse-o-matic/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jquery-collapse-o-matic/reviews/)

## Tags

 * [collapsing](https://wordpress.org/support/topic-tag/collapsing/)
 * [id attribute](https://wordpress.org/support/topic-tag/id-attribute/)

 * 1 reply
 * 2 participants
 * Last reply from: [Baden](https://wordpress.org/support/users/baden03/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/collapsing/#post-5373989)
 * Status: resolved