Generate Press, Infinite Scroll vs. Paginated
-
Hey Lyte ??
David from GeneratePress Support got me to contact you.
The question is, why is WP Lyte working on a paginated archive, why is it not on an infinitely scrolling archive page?
Link to my page is above.
Here is the link to my chat with the GP Support Team:
https://generatepress.com/forums/topic/block-content-template-location-homepage/
The Lyte calling snippet is
add_shortcode( 'featured_youtube_video', function() { ob_start(); // Start your PHP below // ACF(featured_youtube_id, post_id) $youtube_id = get_field('featured_youtube_id', get_the_ID()); if( $youtube_id ) { // WP Youtube Lyte echo do_shortcode('[lyte id='.$youtube_id.']'); } // End your PHP above return ob_get_clean(); } );
I created a GenerateBlocks content template, including the shortcode
[featured_youtube_video]
which is calling the snippet, which is getting the video id from an ACF, before finally Lyte can do its thing.
As described in the forum, everything works fine, until I activate
Customize > Layout > Blog > Infinite Scroll
Then only the first featured Youtube preview image is shown. The second, after scroll down, is gray.
Infinite Scroll de-activated, back to a paginated list, both previews are fine. First on first page, second on second, as expected.
What’s going wrong here?
Thanks so much in advance
WolframThe page I need help with: [log in to see the link]
- The topic ‘Generate Press, Infinite Scroll vs. Paginated’ is closed to new replies.