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(); ?> 
  • Are additional items fields added through Advanced Custom Fields? - Kirill Korushkin
  • @KirillKorushkin is not, it will be the sum of the numbers that will be generated by js and will be for each entry. How to make ACF I know - Yaroslav Saenko
  • I hope to generate a script in the same file? And how to be generated - after a cycle and drawing a template or at each iteration of the filter? - Kirill Korushkin
  • @KirillKorushkin in the template will display the numbers, and the script will summarize them, well, after drawing the template, but how can this affect? - Yaroslav Saenko
  • Affects understanding of the issue as a whole. - Kirill Korushkin

0