Title: Collapsing a post error
Last modified: August 21, 2016

---

# Collapsing a post error

 *  Resolved [andrewonboard](https://wordpress.org/support/users/andrewonboard/)
 * (@andrewonboard)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/collapsing-a-post-error/)
 * Hi i cant seem to work out the problem why collapse o matics not working – Im
   pretty sure the jQuery is not being pulled in as the css is coming up – Ive tried
   <script> in the header.
    Here is my code
 *     ```
       <?php query_posts('category_name=services&post_status=publish,future&order=ASC');?>
           <ul><?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
           <li><h4 class="collapseomatic  colomat-close"><?php the_title(); ?></h4>
   
                   <div id="target-<?php the_ID(); ?>" class="collapseomatic_content ">
           			<?php the_excerpt(); ?></div>
               </li>
           </ul><?php endwhile; else: endif; ?>
       ```
   
 * Any help would be muchly appreciated, its a great plugin and really saves me 
   a lot of time at work. Cheers all
 * [http://wordpress.org/plugins/jquery-collapse-o-matic/](http://wordpress.org/plugins/jquery-collapse-o-matic/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Baden](https://wordpress.org/support/users/baden03/)
 * (@baden03)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/collapsing-a-post-error/#post-4489379)
 * try adding one [expand] shortcode to your page and see if this fixes the issue.
   We changed the plugin to only load the scripts when needed, but this would cause
   a problem for advanced users that have created roll-your-own elements like yourself.
 * If adding a single [expand] shortcode fixes the problem let us know and we will
   push out a fix ASAP.
 *  Thread Starter [andrewonboard](https://wordpress.org/support/users/andrewonboard/)
 * (@andrewonboard)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/collapsing-a-post-error/#post-4489401)
 * unfortunatly it did not fix the issue. Would this be wordpress not recognizing
   the jQuery?
 *  Plugin Author [Baden](https://wordpress.org/support/users/baden03/)
 * (@baden03)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/collapsing-a-post-error/#post-4489542)
 * Hey Andrew,
    Can you post a link to the page that this is not working on?
 *  Thread Starter [andrewonboard](https://wordpress.org/support/users/andrewonboard/)
 * (@andrewonboard)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/collapsing-a-post-error/#post-4489614)
 * Hi Baden – its on a holding page, but i fixed it using jQuery instead of the 
   plugin, had a deadline unfortunately, as i would be interested in seeing what
   my error was. Cheers for being so quick to respond and all your help. I will 
   not doubt be using the plugin in the future as its really awesome, just won’t
   leave it until the last minute.
 * Thanks man
 *  Plugin Author [Baden](https://wordpress.org/support/users/baden03/)
 * (@baden03)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/collapsing-a-post-error/#post-4489654)
 * Alright. Well, can’t win em’ all. Have a good one and if you are inclined, don’t
   forget to [vote for pedro](http://wordpress.org/support/view/plugin-reviews/jquery-collapse-o-matic)!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Collapsing a post error’ 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

 * [collapse-o-matic](https://wordpress.org/support/topic-tag/collapse-o-matic/)
 * [jquery](https://wordpress.org/support/topic-tag/jquery/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 5 replies
 * 2 participants
 * Last reply from: [Baden](https://wordpress.org/support/users/baden03/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/collapsing-a-post-error/#post-4489654)
 * Status: resolved