Viewing 5 replies - 1 through 5 (of 5 total)
  • We’ve gotten reports from multiple users about the featured image not showing up, but we haven’t been able to reproduce the issue on our own. Can you describe how you’re setting a featured image in more detail? Are there any special steps or plugins you’re using in the process?

    Hello,

    For anyone browsing this thread, we’ve become aware of an increasing number of users reporting featured images not showing up for their notification (the notification icon is blank instead).

    This issue should no longer appear for WordPress sites that are HTTPS. However, for WordPress sites that are HTTP, we’re still working to determine the root cause and trying workarounds to patch the issue. We’ll try to resolve this issue soon.

    Thread Starter skmohammadi

    (@mathdl)

    Hello.

    May be the problem be in post featured image dimension?
    Its mean, is necessary to regenerate featured image in notification image dimension?

    Hello,

    Please change this code in plugin will fix Featured Image issue.

    file : wp-content/plugins/onesignal-free-web-push-notifications/onesignal-admin.php
    from -> $post_has_featured_image = has_post_thumbnail($post);
    to -> $post_has_featured_image = has_post_thumbnail($post->ID);

    older than 4.4 wordpress version for has_post_thumbnail($post_id) function need to pass post id. whereas from 4.4 wordpress version this function parameter change to has_post_thumbnail($post_id or $post).

    https://developer.www.ads-software.com/reference/functions/has_post_thumbnail/

    i assume you are using wordpress version which is older than 4.4.

    • This reply was modified 8 years, 2 months ago by Rajesh Vasani.

    Hi Rajesh,

    You might have suggested this elsewhere, but I remember another user suggested the same fix f or WordPress versions older than 4.4. This was fixed a while ago, but just to properly close this thread:

    https://github.com/OneSignal/OneSignal-WordPress-Plugin/issues/55

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Featured Image for posts not appears’ is closed to new replies.