Hey ?? No worries … and thanks for the quick reply … again great plugin !
I have been playing around with it today and have just got it to work how i was hoping ?? it was a bit of playing around but essentially created a new loop template … added the elements I wanted and used “render” to point to it … so add the below code to the functions.php
add_theme_support( 'infinite-transporter', array(
'type' => 'scroll',
'requested_type' => 'click', // store the original type for use when logic overrides it
'container' => 'content',
'render' => 'infinite_scroll',
'footer' => false, // boolean to enable or disable the infinite footer | string to provide an html id to derive footer width
) );
// Custom Infinity Scroll Loop
function infinite_scroll() {
while( have_posts() ) {
the_post();
get_template_part( 'infinate', get_post_format() );
}
};
Not sure if this is the post efficient way … If you have a more efficient way I would love to try it out ??
Just a couple of questions around the article presented in the loop:
– Is there a way to specify a category … so only articles from that category show below the initial article?. Even better if there was a way automatically associate the category from the initial article.
– I see the articles in the loop always starts at the newest article published. Is it possible to start the loop on the article published just before the article being viewed?
Many thanks again in advance