* @package digitale-pracht */ $grid_archive_title = is_archive() ? get_the_archive_title() : null; if ( have_posts() ) : // Start the loop. while ( have_posts() ) : the_post(); $container_class = ''; if ( digitalepracht_first_post_on_first_page_on_home_has_thumbnail() === true ) { // A bit confusing, but works. It‘s not about the title, but about the border top. $container_class = ' has-no-title'; } if ( digitalepracht_is_first_post_in_loop() === true ): ?>