Hello, there is a loop that displays blog entries from a specific category, I need to transfer a separate line to a separate div. That is, on the recording page, I create a certain div with no matter what information and I need to somehow throw this div into a cycle. I understand almost nothing in php. Can someone tell me? thank
<?php if ( have_posts() ) : // Π΅ΡΠ»ΠΈ ΠΈΠΌΠ΅ΡΡΡΡ Π·Π°ΠΏΠΈΡΠΈ Π² Π±Π»ΠΎΠ³Π΅. query_posts('cat=7'); // ΡΠΊΠ°Π·ΡΠ²Π°Π΅ΠΌ ID ΡΡΠ±ΡΠΈΠΊ, ΠΊΠΎΡΠΎΡΡΠ΅ Π½Π΅ΠΎΠ±Ρ
ΠΎΠ΄ΠΈΠΌΠΎ Π²ΡΠ²Π΅ΡΡΠΈ. while (have_posts()) : the_post(); // Π·Π°ΠΏΡΡΠΊΠ°Π΅ΠΌ ΡΠΈΠΊΠ» ΠΎΠ±Ρ
ΠΎΠ΄Π° ΠΌΠ°ΡΠ΅ΡΠΈΠ°Π»ΠΎΠ² Π±Π»ΠΎΠ³Π° ?> <div class = "item"> <div class="item_image"><?php the_post_thumbnail(); ?></div> <div class = "item_title"><?php the_title(); ?></div> <div class = "item_excerpt"><?php the_excerpt(10); ?></div> <a href = "<?php the_permalink(); ?>" class = "item_link">ΠΠΎΠ΄ΡΠΎΠ±Π½Π΅Π΅</a> </div> <?php endwhile; // Π·Π°Π²Π΅ΡΡΠ°Π΅ΠΌ ΡΠΈΠΊΠ». endif; /* Π‘Π±ΡΠ°ΡΡΠ²Π°Π΅ΠΌ Π½Π°ΡΡΡΠΎΠΉΠΊΠΈ ΡΠΈΠΊΠ»Π°. ΠΡΠ»ΠΈ Π½ΠΈΠΆΠ΅ ΠΏΠΎ ΠΊΠΎΠ΄Ρ Π±ΡΠ΄Π΅Ρ ΠΈΠ΄ΡΠΈ Π΅ΡΠ΅ ΠΎΠ΄ΠΈΠ½ ΡΠΈΠΊΠ», ΡΡΠΎΠ±Ρ Π½Π΅ Π±ΡΠ»ΠΎ ΡΠ±ΠΎΡ. */ wp_reset_query();?>
query_posts(and throw a div into a loop, this is all .. get me out from under the table ...) - SeVladdivinside your loop and it will output anyway, no matter what information it contains (static or dynamic). And the question is actually what? - eugene_v