• Resolved gabu69

    (@gabu69)


    FInally WordPress 5.5 is doing lazy loading natively but cant manage to make it work with my php function:

    add_action('genesis_before_footer', 'custom_related_posts');
    function custom_related_posts() {
    	?>   
    		<div class="clearfix clearfix-treding"></div>
    		<div class="custom-related-posts">
    				<div class="yarpp-related">
    					<?php $args = array(
    						'header' => 'Tendencias', 
    						'header_start' => '<div style="text-align:center"><h3 id="tendencias" class="trending-title"><i class="icon-trending"> </i>',
    						'header_end' => '</h3></div>'	,
    						'wpp_start' => '<div class="yarpp-grids">',
    						'wpp_end' => '</div>',
    						'post_html' => '<div class="yarpp-thumbnail">{thumb} <div class="desc"><span>{title}</span></div></div>',
    						'post_type' => 'post',
    						'limit' => 6,
    						'range' => 'custom',
    						'time_quantity' => 5,
    						'time_unit' => 'day',
    						'freshness' => 1,
    						'thumbnail_width' => 520,
    						'thumbnail_height' => 272,
    					);
    					wpp_get_mostpopular( $args );
    					?>
    				</div>
    		</div>
    	<?php
    }
    

    Any idea how to get it working?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Lazy loading compatibility with 5.5 Version’ is closed to new replies.