WordPress.org

Ready to get started?Download WordPress

Forums

Dynamic Featured Image
[resolved] Twentythirteen childtheme images in loop error (3 posts)

  1. THAWK
    Member
    Posted 9 months ago #

    Hi Ankit,

    Would love to use this super awesome feature but somehow I cant get it to work. Added the standard featured image and 1 extra one, featured image 2. Then edited page.php in my childtheme:

    Replaced <?php the_post_thumbnail(); ?> with:

    <?php
       while ( have_posts() ) : the_post();
    
       if( function_exists('dfiGetFeaturedImages') ) {
           $featuredImages = dfiGetFeaturedImages();
       }
    
       endwhile;
    ?>

    Generates my content to be repeated multiple times, check this page to see the bug: http://www.martijndegroot-com.nl04.members.pcextreme.nl/over-martijn/communicatieadvies/

    Make sure you let it load long enough :)

    Tried some other ways of getting them to load, all without success, either they dont load at all or this repeating of the content occurs.

    Any help appreciated.

    Kind Regards,
    Thomas Borkent

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

  2. Ankit Pokhrel
    Member
    Plugin Author

    Posted 9 months ago #

    Hi Thomas,

    Thank you for using my plugin :). Could you send me your page.php file at ankitpokhrel@gmail.com so that i can examine it? I guess you are using loop inside a loop.

    Thanks,
    Ankit

  3. THAWK
    Member
    Posted 9 months ago #

    Thank you for your super fast and to the point support!, works like a charm now!

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.