
Check if post image is landscape or portrait
A quick snippet to check whether the post image is naturally landscape or portrait.
A quick snippet to check whether the post image is naturally landscape or portrait.
I can’t remember who came up with this first but here’s a link to the person I think came up with the code.
There are several types of query that you can perform within a WP_Query – one of which is date_query.
You can easily get information out of the current posts’ taxonomy by using the following snippet.