EDIT:
In order to have content start expanded, you need to remove the force_content_collapse
class from the collapseomatic_content
div, in addition to adding the colomat-close
tag to the collapseomatic
title. So the corrected code for auto-expanded content would be:
<h4 class="collapseomatic colomat-close" title="<?php the_title(); ?>" id="<?php the_ID(); ?>"><?php echo get_the_post_thumbnail($page->ID, 'thumbnail'); ?><?php the_title(); ?></h4> <!-- Returns title with Collapse-o-matic formatting -->
<div class="content_collapse_wrapper"><div id="target-<?php the_ID(); ?>" class="collapseomatic_content "><?php the_excerpt(); ?></div></div> <!-- Returns post content in collapse-o-matic div -->