galacticpirates
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: Image exists but has_post_thumbnail says it doesn’tI did try as you suggested. I switched to a totally uncustomised basic theme (the latest 2025). I also deactivated all plugins – it didn’t help, still blank.
I had already tried your suggestion about getting the image information on the direct level and that hadn’t worked either.
Anyway I have found a solution! As I said in my initial post my only theory as to how I couldn’t get the information, through any method (direct or function) was “it was firing off to discord before writing the data.” and I’m thinking that was likely true.
I added this code to delay the discord action:
wp_schedule_single_event(time() + 5, 'send_to_discord_event', array($post_ID, $post));And that did it. I’m still very glad I made this post because while I have found the solution, it drove me insane looking. Usually what I do when troubleshooting is search, and find the reddit/stackoverflow/wordpress support etc. posts where someone else has had the same issue. I found nothing for this, so now I guess I am paying it forward. I hope if anyone else has the same issue they will find this and won’t have the same lengthy nightmare I did.
Thanks for trying 🙂