Problem with ALM grid
-
Hi!
Thanks for the plugin! Really nice ??
Im having a problem with my grid-style theme. As deafult my theme displays a row of 3 posts, but when Im pressing the “Load more” button it only displays 1 row.
Im not good at coding, but ive tried your JS for the masonry example on your site. But it didnt work for me, maybe not even what i should use?
You can find my site at www* smashback *se and try the button “Visa mer” on index.
From what I can tell the theme uses bootstrap, jquery, masonry.. if that helps… ??
My Repeater Template:
<div id="teaser-holder" class="row"> <div <?php post_class(); ?>> <div class="teaser"> <?php the_post_thumbnail('featured-teaser'); ?> <div class="teaser-text"> <?php if (is_sticky()) : ?> <?php the_title('<h3 class="teaser-title"><span>★</span><a href="' . esc_url( get_permalink()) . '" rel="bookmark">', '</a></h3>'); ?> <?php else: ?> <?php the_title('<h3 class="teaser-title"><a href="' . esc_url( get_permalink()) . '" rel="bookmark">', '</a></h3>'); ?> <?php endif; ?> </div> <div class="teaser-footer"> <p><?php echo get_avatar(get_the_author_meta('ID'), 20); ?> <span><?php the_author(); ?> ? <?php the_time(get_option('date_format')); ?></span></p> </div> </div> </div> </div>
My shortcode:
<?php echo do_shortcode('[ajax_load_more post_type="post" offset="12" posts_per_page="12" scroll="false" pause="true" button_label="Visa mer"]'); ?>
Really appreciate any ideas and help! thank you!
/Andreas
- The topic ‘Problem with ALM grid’ is closed to new replies.