Pull the ID first, then you’ll have access to the post’s data.
Usage:
If you only have a post’s slug, you can easily get the ID of it, and than pull that post’s info. Useful for when you can only get a post’s slug, but need to get more info for that post.
Leave a Reply