My sites’ posts are often a mixture of formats: some have a featured image, some are lengthy stories, some are just a couple of dozen words, some are mostly a photo gallery, and some may be a single image. When a number of these are listed together, a single format isn’t adequate. WordPress has a feature call post format, and the only support that I can find for in in Pinegrow is the line in functions.php which says that my theme supports all of the standard formats.
My problem is that as soon as I put some PHP in (say) category.html, like:
if ( has_post_format( ‘video’ )) {
echo ‘this is the video format’;
}
then my understanding is that Pinegrow probably breaks.
So my question is did I miss some Pinegrow function that would allow me to output X if it’s an aside and Y if it’s an image and Z otherwise, or, if not, is there another way to do what I want?
Many Thanks!