WordPress.org

Support

Support » Plugins and Hacks » Dynamic Featured Image » [Resolved] Replacing featured image in category.php

[Resolved] Replacing featured image in category.php

  • Hi!

    Great plugin!

    I was trying to change the featured image on the category.php page, but I’m probably doing something wrong..

    The theme is calling for the featured image like this:
    <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('home-post'); ?></a>

    I tried replacing that part with:

    <a href="<?php the_permalink(); ?>">
    					<?php while ( have_posts() ) : the_post();
    					if( function_exists('dfi_get_featured_images') )
    					{
    						$featuredImages = dfi_get_featured_images();//Now, loop through the image to display
    					}
    					endwhile;
    					?>
    					</a>

    But it’s not working… it loops the post a thousand time.

    What should I do?

    Best regards

    https://wordpress.org/plugins/dynamic-featured-image/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] Replacing featured image in category.php’ is closed to new replies.
Skip to toolbar