Skip to content

Instantly share code, notes, and snippets.

@wjramos
Created May 20, 2014 23:06
Show Gist options
  • Save wjramos/6eb88e6395005d3a80e6 to your computer and use it in GitHub Desktop.
Save wjramos/6eb88e6395005d3a80e6 to your computer and use it in GitHub Desktop.
Collapsing post feed widget
<div id="our-team-expand" class="collapseomatic subpage-expander">Read More</div>
<div class="subpage">
<ul class="our-team">
<?php $myposts=get_posts( 'numberposts=3'); foreach($myposts as $post) :?>
<li>
{THUMBNAIL} {TITLE} {EXCERPT}
</li>
<?php endforeach; ?>
<div id="target-our-team-expand" class="collapseomatic_content">
<?php $myposts=get_posts( 'numberposts=10'); foreach($myposts as $post) : ?>
<li>
{THUMBNAIL} {TITLE} {EXCERPT}
</li>
<?php endforeach; ?>
</div>
</ul>
</div>
@wjramos
Copy link
Author

wjramos commented May 21, 2014

WordPress Recent Posts Plus widget layout for collapsing staff bio sub-page

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment