ThaiSEOBoard.com

พัฒนาเว็บไซต์ => CMS & Free Script => ข้อความที่เริ่มโดย: sweetlovestudio ที่ 12 มกราคม 2018, 14:06:15



หัวข้อ: wordpress อยากเพิ่ม ราคา หรือใส่รูปเล็กๆเพืิ่อบอกรายละเอียด ทำยังไงครับ
เริ่มหัวข้อโดย: sweetlovestudio ที่ 12 มกราคม 2018, 14:06:15
wordpress อยากเพิ่ม ราคา หรือใส่รูปเล็กๆเพืิ่อบอกรายละเอียด ทำยังไงครับ

ขอบคุณครับ

(https://www.picz.in.th/images/2018/01/12/2018-01-12.png)


หัวข้อ: Re: wordpress อยากเพิ่ม ราคา หรือใส่รูปเล็กๆเพืิ่อบอกรายละเอียด ทำยังไงครับ
เริ่มหัวข้อโดย: pond_z1000 ที่ 12 มกราคม 2018, 14:55:24
wordpress อยากเพิ่ม ราคา หรือใส่รูปเล็กๆเพืิ่อบอกรายละเอียด ทำยังไงครับ

ขอบคุณครับ

(https://www.picz.in.th/images/2018/01/12/2018-01-12.png)


โค๊ด:
<?php
                  $args 
= array(
                   &
#39;numberposts&#39; => 3,
                   
&#39;order&#39;=> &#39;DESC&#39;,
                   
&#39;category&#39; => 1,
                  
);

                  
$features get_posts$args );
                  foreach ( 
$features as $post ) :
                    
setup_postdata$post ); ?>

                    <li>
                    <figure>
                    <?php the_post_thumbnail(&#39;category-thumb&#39;); ?> //ภาพ
                    </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($content0150);?> <?php echo &#39;<br> <a href="&#39; . esc_url( get_the_permalink() ) . &#39;" class="amore"> อ่านเพิ่มเติม</a>&#39;; ?>
                    </p>
                    </figcaption>
                  </li>

                  <?php endforeach;
                  
wp_reset_postdata(); ?>


ส่วนราคา อาจต้องใช้ปลั๊กอินพวก woocom แล้วดึงตรงราคามาใส่ครับ


หัวข้อ: Re: wordpress อยากเพิ่ม ราคา หรือใส่รูปเล็กๆเพืิ่อบอกรายละเอียด ทำยังไงครับ
เริ่มหัวข้อโดย: sweetlovestudio ที่ 18 มกราคม 2018, 17:08:14
ขอบคุณมากครับ