WordPress.org

Ready to get started?Download WordPress

Forums

Can't get right picture to show up (1 post)

  1. vandewerk
    Member
    Posted 2 years ago #

    Hi there - I am running this blog which has had a recent update (different look / layout).

    The problem is that when I post a link to the blog on places like facebook (or linked-in, g+) the picture that goes with the blogpost does not show up...it used to be that FB would automatically select and show the right picture. All I can do now is select the 'header' picture for the home-page, not the one that is supposed to go with the blog-post.

    Here's an example of a facebook post:
    http://www.facebook.com/bastiaanvandewerk/posts/254501557900695

    I the link in the post goes to a blogpost with a picture of nice sailing ship in it.

    For some reason FB doesn't recognize the picture? What should I change?

    The most likely problem is that the picture *is* uploaded to the page (I have to name it 1900.jpg is the post has number 1900) but NOT inserted into the page - this is handled by the code like this:

    <div class="postcontainer" style="background-image: url(/wp-content/uploads/<?php the_time('Y') ?>/<?php the_time('m') ?>/<?php the_ID(); ?>.jpg); height: 280px; width: 585px; border-left: 0px solid #1e0f00; border-right: 0px solid #1e0f00;">

    Does anybody know how I can fix this?

Topic Closed

This topic has been closed to new replies.

About this Topic