• Resolved MrBen

    (@mrben)


    Hi,

    I set up the portfolio section of a site so that the Featured Image and heading of any child page would appear on the parent page. It all worked fine until I upgraded to 3.1

    It now displays the same image for all the items on the same page. Has any one else had this issue? Any idea how to fix it?!

    The code I’m using is:

    [Code moderated, Please post small code snippets between backticks or use the code button]

    and it worked perfectly before I upgraded to 3.1.

    Cheers,
    Ben

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,

    I have the same problem using the code:

    echo the_post_thumbnail($pageChild->ID);

    Any ideas?

    Regards,

    Gabriel

    Thread Starter MrBen

    (@mrben)

    Sorry – the code should be:

    <?php echo get_the_post_thumbnail(); ?>

    Not found an answer yet :/

    Hi,

    I found the solution to my problem i modified my code adding the get, my original code didn’t use it.

    The updated code looks like:

    echo get_the_post_thumbnail($pageChild->ID);

    And works fine.

    Regards,

    Gabriel

    Thread Starter MrBen

    (@mrben)

    Thank you – I had the get_ but I was missing ($pageChild->ID) all I had was empty ( ) . All working correctly now 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Featured Image not working correctly after upgrading to 3.1’ is closed to new replies.