• Resolved walpap

    (@walpap)


    Hello, im trying your plugin for facebook.
    Te images are working well in posts and pages.
    Thing is i want to set a default image for the homepage, but i dont know how to do it or i am doing it wrong.
    The homepage contains a section with blog articles. Facebook caches the images of this articles when sharing. But i want to share an specific image only for the homepage.

    The home url of the site is iglesiaarmenia.org and redirects with htaccess to iglesiaarmenia.org/arg/

    I set the default fallback image as id and as url, the image is big enough 700×421. I set the image i want as featured image. Your plugin detects it ok, and it shows the preview well. But facebook instead chooses different thumbnails when sharing. What else can i do?

    This is the url of the image i want to show when sharing the homepage: iglesiaarmenia.org/arg/wp-content/uploads/2015/12/2-logos.jpg

    Thanks in advanced!!

    PD: Also, this warning message appears when fetching the page. Only in the home url. It doesnt happen with posts. Why?:
    The ‘og:image’ property should be explicitly provided, even if a value can be inferred from other tags.

    https://wordpress.org/plugins/wpsso/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author JS Morisset

    (@jsmoriss)

    Please enable the Debug Messages option on the SSO Essentials or Advanced settings page and I’ll have a closer look.

    Thanks,

    js.

    Thread Starter walpap

    (@walpap)

    Debug Messages Enabled!

    Thanks js

    Plugin Author JS Morisset

    (@jsmoriss)

    There’s something odd going on here… You seem to be using a static page for your home page, but there’s no “page” information (page id, type, etc.). WordPress should also be returning true for is_singular(), but it’s not. Very odd. So because the page isn’t an archive, isn’t singular, and doesn’t have a post ID, it doesn’t match anything – it can’t be processed as a post/page OR an index/archive page.

    Hm. So in the WordPress Settings -> Reading -> “Front page displays” option, what do you have? It’s a page? And does that page exist under the WordPress Pages list?

    js.

    Plugin Author JS Morisset

    (@jsmoriss)

    I made a small change for you in v3.32.1-1 — normally the plugin uses is_singular() to detect posts/pages, etc., but in your case, that function does not appear to be working, so I’ve added an extra check for is_front_page() && get_option( 'show_on_front' ) === 'page'.

    js.

    Thread Starter walpap

    (@walpap)

    js Yes!!
    You did it. It is working now.

    But i want to explain what i tried before.

    Before upgrading to the new version of your plugin, i went to the Reading option in wordpress to check how it was.
    So i had the latest posts option selected. And in the “Enfold” theme options (where is an option to select the homepage manually) i had my start page selected. So i did change the latest posts option in wordpress to my homepage.
    Visually nothing changed in the website, but when i tried to fetch the images from facebook, the problem was still there.

    Finally after upgrading the plugin everything worked.

    I am surprised no one had this problem before with the “Enfold” theme.
    Both, your plugin and this theme are very popular, and it is strange i am the first to notice this. Odd things could happen anyway.

    Thank you very much for your help. I disabled the debug option now. If you need it again just whistle.

    Bye!

    Thread Starter walpap

    (@walpap)

    I forgot to tick the topic resolved option.

    Thanks again!

    Plugin Author JS Morisset

    (@jsmoriss)

    Your theme is probably doing it wrong — it’s more common than you think. 😉 For a static page, WordPress is supposed to return true for the following functions:

    is_front_page()
    is_page()
    is_singular()

    All other functions (like is_archive(), etc.) return false. This is all fairly well documented in the WordPress codex and is easily tested.

    When your theme sets-up its static page, only the following functions return true:

    is_front_page()
    is_page()

    They forgot to code for is_singular(). My suggestion would be to report this to your theme authors as a bug.

    js.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Default Image not working’ is closed to new replies.