ทำได้แล้วครับ แต่ว่าของที่แสดงในหน้าจะน้อยลงหน่อยนึงนะครับ
ขั้นตอนดังนี้ครับ
ให้เราไปดูที่ theme ครับคือว่าผมใช้ default อยู่แล้วครับเข้าไปแก้ที่ index.php ของทีม default ครับ
หากเปิดมาบรรทัดที่ 11จะได้ประมาณนี้ครับ
if (have_posts()) {
while(have_posts()) {
the_post();
$img = item_get_thumb($item);
$price = item_get_price($item);
ให้เราเพิ่ม
เป็น
if (have_posts()) {
while(have_posts()) {
the_post();
$img = item_get_thumb($item);
$price = item_get_price($item);
if($price <> "N/A") {
และปิดท้ายด้วย บรรทัดที่ 27 ครับ
จากเดิมเป็น
ให้เราเพิ่มวงเล็บไปอีกตัวครับเป็น
save ก็เรียบร้อยครับ