Last active
April 24, 2016 18:11
-
-
Save JeremyEnglert/22bab1edc25e5a7d4eeb to your computer and use it in GitHub Desktop.
Use an "Accordion Archive" with JointsWP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php get_header(); ?> | |
<div id="content"> | |
<div id="inner-content" class="row"> | |
<main id="main" class="large-8 medium-8 columns" role="main"> | |
<ul class="accordion" data-accordion role="tablist"> | |
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> | |
<li class="accordion-item"> | |
<a href="#panel-<?php the_ID(); ?>" role="tab" class="accordion-title" id="panel-<?php the_ID(); ?>-label" aria-controls="panel-<?php the_ID(); ?>"><?php the_title(); ?></a> | |
<div id="panel-<?php the_ID(); ?>" class="accordion-content" role="tabpanel" data-tab-content aria-labelledby="panel-<?php the_ID(); ?>-label"> | |
<?php get_template_part( 'parts/content', 'byline' ); ?> | |
<a href="<?php the_permalink() ?>"><?php the_post_thumbnail('full'); ?></a> | |
<?php the_content('<button class="tiny">Read more...</button>'); ?> | |
</div> | |
</li> | |
<?php endwhile; ?> | |
</ul> | |
<?php joints_page_navi(); ?> | |
<?php else : ?> | |
<?php get_template_part( 'parts/content', 'missing' ); ?> | |
<?php endif; ?> | |
</main> <!-- end #main --> | |
<?php get_sidebar(); ?> | |
</div> <!-- end #inner-content --> | |
</div> <!-- end #content --> | |
<?php get_footer(); ?> |
P.S. I tested again with the full foundation.js call, and no error... changed back to foundation.min.js, and got the error... plus when I just press the Command button it gives me these errors...
I know your busy... just a heads up... I am just going to switch back to using the full f.js call for this project...
Note for anyone else who runs into the above issue, it can be resolved by updating Foundation. The original 6.0 release had some bugs with minified files.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Awesome Jeremy! You Rock!