لیست محصولات ما
[foobar]
<div class="content__blog_container">
<?
if( ! empty( $my_posts ) ){
$output = '<ul>';
foreach ( $my_posts as $p ){
$post_title = $p->post_title;
$post_exc = $p->post_excerpt;
$post_body = $p->post_content;
$post_url = get_permalink($p);
?>
<div class="content__blog_box">
<div class="content__blog_thumbnail">
<img src="<?php echo get_template_directory_uri(); ?>/img/blog1.jpg" alt="مطلب جدید">
</div>
<div class="content__blog_content">
<span class="content__blog_date"></span>
<h3 class="content__blog_title">
<a href="<?echo $post_url;?>"><?echo $post_title;?></a>
</h3>
<p class="content__blog_text">
<?echo $post_exc;?>
</p>
</div>
</div>
<? } } ?>
</div>
<?php echo "salam";?>
تست