Closed dancrowe closed 6 years ago
Hi, im trying to use gridder within a WP query. I have it set up like a normal query with the
The toggle part seems to work but the nav to go back and forth from the items does not. Any idea on how to get this working?
Here is my code.
`
<?php $counter = 0; if (have_posts()) : while (have_posts()) : the_post(); $counter++; ?> <li class="gridder-list" data-griddercontent="#content<?php echo $counter; ?>"> <article id="post-<?php the_ID(); ?>" <?php post_class(''); ?> role="article" data-equalizer-watch> <section class="featured-image" itemprop="articleBody"> <?php if (has_post_thumbnail( $post->ID )) { ?> <?php the_post_thumbnail('blog-archive'); ?> <?php } else { ?> <img src="https://via.placeholder.com/420x275"> <?php } ?> </section> <!-- end article section --> </article> <!-- end article --> </li> <div id="content<?php echo $counter; ?>" class="gridder-content"> <h3 class="title"><?php the_title(); ?></h3> <?php the_field('short_bio'); ?> </div> <?php endwhile; ?> <?php joints_page_navi(); ?> <?php else : ?> <?php get_template_part( 'parts/content', 'missing' ); ?> <?php endif; ?> </ul>`
Here is a demo of the page. All settings are just default.
https://hosting.acscreativedev.com/~acscreative/team/
Thanks for any help.
I already replied to you in #63. You are not generating the correct html markup. You need to separate the navigation and the content.
Hi, im trying to use gridder within a WP query. I have it set up like a normal query with the
on the outside and the- on the inside to property display the info in the correct order.
The toggle part seems to work but the nav to go back and forth from the items does not. Any idea on how to get this working?
Here is my code.
`
Here is a demo of the page. All settings are just default.
https://hosting.acscreativedev.com/~acscreative/team/
Thanks for any help.