Create varying video heights with SCSS based on the number of posts (wp_query)
I needed to calculate the height of a video tag based on how many were on screen, inside a wp_query loop. Here’s what I did: Then inside the loop, where there might be a video to be displayed, I added a class with the countage variable stuck to the end of it the class ‘hasvideo_<?php […]
Read More