Make sure the $post – object could be retrieved
-
Hi,
I’m developing my own plugin which manipulates many posts.
And I’m receiving an error because the global $post isn’t set.I think this happens when a post is being trashed.
So just add a line checking if $post holds the expected values.
The topic ‘Make sure the $post – object could be retrieved’ is closed to new replies.