Support » Plugin: JM Twitter Cards » Summary not showing image from post

  • Resolved Rezaei

    (@rezaei)


    Hi,

    I’m currently using Thesis 1.8 and when you create a post there is a box underneath the editing section for you to enter the url of the ‘post image’.

    Thesis then displays that image as the main image of your blog post. It automatically crops it for the thumbnail as well.

    When I’ve set up JM Twitter Cards with the summary card it’s not using the image from the blog post. Instead it is defaulting to my Gravatar image as I’ve set that as a back up.

    Is there any way I can get it to display the image from my post with out changing my current set up. Thesis handles the imaging for me.

    http://wordpress.org/extend/plugins/jm-twitter-cards/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author tweetpressfr

    (@jmlapam)

    Hi, sure but you have to modify the PHP code. Can you do such a thing?

    Rezaei

    (@rezaei)

    Yeah, I’m by no means an expert, but I’m pretty sure I’d be able to edit it.

    What do I have to edit exactly?

    Plugin Author tweetpressfr

    (@jmlapam)

    This would be pretty simple if you know how to get thesis post thumbnail URL.

    You just need this data (probably a post meta or a custom field) and then you’ll be able to change L 245 in JM Twitter Cards like this :

    elseif( $cardType == 'gallery') {

    We are to add another elseif :

    elseif( $thesisImage  /* == something that retrieves thesis image URL*/ ) {
    echo '<meta property="twitter:image" content="' . $thesisImage . '"/>'."\n";
    Plugin Author tweetpressfr

    (@jmlapam)

    3.2.9 allows to associate custom fields with twitter meta.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Summary not showing image from post’ is closed to new replies.