How can I get (call) the default og:image ?

I have a plug in that overrides the default featured image that I set in SEO Smartcrawl. The plugin's developers gave me some PHP to put in my functions.php file to fix this and add it manually. Please let me know how can I get (call) the default og:image that is set in the SmartCarwl settings, so I could add it inside the custom PHP code.

  • Ivan
    • Developer

    Hi Marc Kreidler !

    Unfortunately, you can't call it anytime because this meta-tag should be echoed into the HEAD section of a page. Wordpress use wp_head action for it and our plugin uses it with low priority 50 ( it means that it will run after other calls with higher priority ).
    So, it depends on how that plugin overrides it. In brief, the has_post_thumbnail( $post ) function should return empty value in time when the wp_head action run. Maybe you should apply that code to this hook?

    If you provide me with additional login credentials, I can look into it more.
    Please visit our private Contact page and complete the form with the following information:

    Subject: "Attn: Ivan Svyrskyi"

    In the Message box, please provide the following:

    link back to this thread for reference
    page url which shows the wrong og:image
    any other relevant urls

    Admin login:
    Admin username
    Admin password
    Login url

    FTP/SFTP credentials
    (and port if required)

    Note: Don't send any credentials via this forum because it's public forum.


Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.