fosteralex
Forum Replies Created
Viewing 4 replies - 1 through 4 (of 4 total)
-
Harry potter fam. Figured you went to Hogwarts since this plugin is magic.
Poof. worked. Thanks alot. 20 points to gryphindor
I added as a class on the container. Heres my short code
<?php echo do_shortcode('[ajax_load_more post_type="news" category="news-articles" category__not_in="1" posts_per_page="6" pause="true" scroll="false" button_label="Load More" button_loading_label="Loading Articles..." container_type="div" css_classes="news-archive-wrapper col-md-4" transition_container="false"]'); ?>my Repeater template.
<div class="news-archive-item"> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <!-- post thumbnail --> <?php if ( has_post_thumbnail()) : // Check if thumbnail exists ?> <a>" title="<?php the_title(); ?>"> <?php the_post_thumbnail(); // Declare pixel size you need inside the array ?> </a> <?php endif; ?> <?php if (!has_post_thumbnail()){ ?> <div class="no-thumb-body"> <h2> <a>" title="<?php the_title(); ?>"><?php the_title(); ?></a> </h2> <div class="news-date"><?php echo "Posted on: " . get_the_time('M d, Y'); ?></div> <!-- /post title --> <?php html5wp_excerpt('html5wp_index'); // Build your custom callback length in functions.php ?> <a>">Read More <span> <i class="fa fa-arrow-circle-right" aria-hidden="true"> </i> </span> </a> </div> <?php } else {?> <div class="archive-body-content"> <h2> <a>" title="<?php the_title(); ?>"><?php the_title(); ?></a> </h2> <div class="news-date"><?php echo "Posted on: " . get_the_time('M d, Y'); ?></div> <!-- /post title --> <?php html5wp_excerpt('html5wp_index'); // Build your custom callback length in functions.php ?> <a>">Read More <span> <i class="fa fa-arrow-circle-right" aria-hidden="true"> </i> </span> </a> </div> <?php } ?> <!-- post title --> </article> <!-- /article --> </div>- This reply was modified 9 years, 6 months ago by fosteralex.
Viewing 4 replies - 1 through 4 (of 4 total)