Support » Plugin: Jetpack by WordPress.com » Jetpack og:image problem. 27 pages i read with no solution

  • Resolved MasterC3501

    (@masterc3501)


    Frankly I been out of the game a little while and I come back and start building a website and notice that FB is pulling a blank image. I went to the diagnosis tool and discovered its pulling that wordpress default blank image. I searched the internet for 2 hours trying to find a appropriate solution for myself and cant find one.

    I hate the featured image function. I cant seem to get the size I want. It doesnt appear to allow me to move it around the page and have it sit where I see fit… all around its freaking stupid and I am tired of fiddling with it. Its my understanding with that Jetpack would look for the first image on the page if no featured image is found yet for both sites I have tested this on it does not do what it is supposed to do and I am going to throw my laptop out the window if I have to deal with this garbage anymore. I just as much prefer not to use stupid og meta tags but I cant find anywhere that tells me if the social websites now REQUIRE it or not. The good old days would let you scroll through all the images on the website and choose the one that best suited you.

    In short I need to know what I need to do in order to get this infuriating plugin to do what it is SUPPOSED to do….
    http://www.savealmosthuman.com
    http://www.ecigsavings.com

    please help me

    https://wordpress.org/plugins/jetpack/

Viewing 7 replies - 1 through 7 (of 7 total)
  • it appears that this is primarily taking place on just my home pages…. why?

    all weekend and not a single response?

    Plugin Contributor Jeremy Herve

    (@jeherve)

    Jetpack Mechanic

    This small tutorial will help you add a default Open Graph image tag on your home page, to replace the default blank image:
    http://jetpack.me/2013/07/12/add-a-default-image-open-graph-tag-on-home-page/

    that works for homepage sure but what about pages like this http://www.savealmosthuman.com/tell-syfy-to-save-almost-human/ why does the stupid plugin INSIST on pulling a blank image…. it makes no sense. There is clearly a very large picture on there

    Plugin Contributor Jeremy Herve

    (@jeherve)

    Jetpack Mechanic

    You’re right, the plugin should pick up that image. I’m not sure why it didn’t.

    Could you try to upload and insert it again in the post, and let me know if it helps?

    I had a contact form plugin fueling that page. The image was part of HTML that was implanted into the form introduction then used a shortcode to place the form into the post. The only way I could correct the issue was to rip the html code from the form and insert it into the actual post and use the shortcode for only the form itself and not allow the introduction to be a part of the form. I really wish Jetpack just had some fields in the posts and pages options to input a URL for the image and even select a size for it to be rendered at. Add this to the plugin shouldnt be to extreme I would think. This would allow Jetpack to work in the following order… Post options, featured image, images in post…. It could be just like the options for meta description and keywords, discussion settings, etc. It would eliminate ALL of these issues with OG:IMAGE tags and no one would need to alter code and crap anymore. Can this be accomplished? That way when I create a new post or page on Save Almost Human I will be able to just input whatever image I want as the og:image and whatever size I want without it ever effecting the post and dictating the sizes of images I can use on those posts.

    Plugin Contributor Jeremy Herve

    (@jeherve)

    Jetpack Mechanic

    Jetpack’s Open Graph meta tags will grab the Featured Image if you’ve added one to your post.

    However, if you do not wish to use the Featured Image option, and if you do not want to insert the image into the post content either, you could use Custom Fields.

    Try adding the following code to your theme’s functions.php file, or to a functionality plugin:

    function jeherve_custom_cf_og_image( $tags ) {
            global $post;
            $ogimage = get_post_meta( $post->ID, 'ogimage', true );
    
            if ( is_singular() && $ogimage ) {
                    unset( $tags['og:image'] );
                    $tags['og:image'] = esc_url( $ogimage );
            }
            return $tags;
    }
    add_filter( 'jetpack_open_graph_tags','jeherve_custom_cf_og_image' );

    This way you’ll be able to use the built-in interface that comes with WordPress to create custom Open Graph images that do not have to be inserted into posts or in Featured Images:
    http://i.wpne.ws/VztF

    You only have to create a custom field named ogimage, and it will take over Jetpack’s Open Graph Meta tags’ default behaviour.

    While this is an edge case and probably isn’t worth adding to Jetpack itself (since most people do insert their images into their posts or use Featured Images), that custom code should do the trick in your case.

    I hope this helps.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Jetpack og:image problem. 27 pages i read with no solution’ is closed to new replies.