Okay so I’ve gone with the second template, I’m pretty sure thats the right one.
So I replaced the the_content()
with the shortcode [ajax_load_more nextpage="true" nextpage_urls="true" nextpage_scroll="350:30" nextpage_post_id="'. get_the_ID() .'" pause="true" pause_override="true" button_label="Next Page" images_loaded="true" transition="fade" container_type="div"]
So it looks like this now:
<?php
/**
* The template used for displaying homepage content.
*
* @package Rookie
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it. ?>
<header class="entry-header">
<?php the_post_thumbnail( 'large' ); ?>
</header><!-- .entry-header -->
<?php } ?>
<div class="entry-content">
<div class="homepage-widgets">
<?php dynamic_sidebar( 'homepage-1' ); ?>
</div>
<?php echo do_shortcode('[ajax_load_more nextpage="true" nextpage_urls="true" nextpage_scroll="350:30" nextpage_post_id="'. get_the_ID() .'" pause="true" pause_override="true" button_label="Next Page" images_loaded="true" transition="fade" container_type="div"]'); ?>
</div><!-- .entry-content -->
</article><!-- #post-## -->
Nothing changed though. Where have I messed up?
-
This reply was modified 7 years, 9 months ago by 2tyerd.
-
This reply was modified 7 years, 9 months ago by 2tyerd.