Wrong image due to wrong priority
-
Hello,
I am using WordPress Automatic Plugin (https://codecanyon.net/item/wordpress-automatic-plugin/1904470) to post articles to my website. However I noticed that it always posts the wrong image (the first one from the sidebar, rather than the featured image).
I’ve already been debugging everything for 2 days. The og:image tags are correct, Facebook scrapes the article correctly, however it seems when WordPress Automatic plugin is adding new posts using wordpress cronjob, Facebook Auto Publish does not yet have the featured image.
This leads me to believe that Facebook Auto Publish is triggered before WP Automatic has fully added the post with the image to WordPress.I see Facebook Auto Publish hooks into
transition_post_status
to get triggered, while WP Automatic useswp_insert_post
via wp cronjob.I assume
transition_post_status
gets triggered beforewp_insert_post
and that’s why it can’t retrieve the featured image picture?What could I do?
- The topic ‘Wrong image due to wrong priority’ is closed to new replies.