using DCLL in a loop
-
Hi I’m using dcll in an archive page of a custom post type. It works fine always on the first 6 images (9 images per page) the other three are rendered with the SVG placeholder.
Just few times all the images appeared but after reloaded the page again only the first 6 were visible.if I check via mobile no pictures are visible.
I used the code in this way inside the archive page:
<?php if ( has_post_thumbnail() ) {
$image = get_the_post_thumbnail( $post_id );
$image = apply_filters( ‘dominant_colors’, $image, get_post_thumbnail_id ( $post_id ) );
echo $image;
} else {The page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘using DCLL in a loop’ is closed to new replies.