How to enable the cycle of blog entries in WordPress output additional elements? I created a recording template for a specific heading, where there is a thumbnail, title, excerpt and additionally included in the template an element with text content that will be automatically generated there, let's say these are div elements with the class .custom. Next, I created a cycle on the page of records that will display all the records from this particular category, I can display a thumbnail, title, excerpt, but I don’t know how to output .custom in this cycle. How to build a loop correctly so that my .custom will also pull up from a write template? thank
<?php if ( have_posts() ) : query_posts('cat=1'); while (have_posts()) : the_post(); ?> <div class = "programs-flex-item"> <div class = "programs-flex-item__title"><?php the_title(); ?></div> <div class = "programs-flex-item__image"><?php the_post_thumbnail(); ?></div> <div class = "programs-flex-item__excerpt"><?php the_excerpt(); ?></div> <div class = "custom">ЗДЕСЬ ДИНАМИЧЕСКИЙ КОНТЕНТ</div> </div> <?php endwhile; endif; wp_reset_query(); ?>