wordpress อยากเพิ่ม ราคา หรือใส่รูปเล็กๆเพืิ่อบอกรายละเอียด ทำยังไงครับ
ขอบคุณครับ
<?php
$args = array(
'numberposts' => 3,
'order'=> 'DESC',
'category' => 1,
);
$features = get_posts( $args );
foreach ( $features as $post ) :
setup_postdata( $post ); ?>
<li>
<figure>
<?php the_post_thumbnail('category-thumb'); ?> //ภาพ
</figure>
<figcaption>
<a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a>
<p>
<?php $content = get_the_content(); echo mb_strimwidth($content, 0, 150);?> <?php echo '<br> <a href="' . esc_url( get_the_permalink() ) . '" class="amore"> อ่านเพิ่มเติม</a>'; ?>
</p>
</figcaption>
</li>
<?php endforeach;
wp_reset_postdata(); ?>
ส่วนราคา อาจต้องใช้ปลั๊กอินพวก woocom แล้วดึงตรงราคามาใส่ครับ