Support » Plugin: Dynamic Featured Image » Replacing featured image in category.php

  • Resolved Sinom



    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

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

    What should I do?

    Best regards

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