رفتن به مطلب

ArminZol

عضو سایت
  • تعداد ارسال‌ها

    3
  • تاریخ عضویت

  • آخرین بازدید

نوشته‌ها ارسال شده توسط ArminZol

  1. کدش به این صورته

     <div class="new-posts clearfix">
    <div class="title-main clearfix"><h3><?php _e('محصولات تخفیف خورده'); ?></h3>
    </div>
    <div class="swiper-container swiper33">
    <div class="swiper-wrapper">
    <?php
    $arms = array(
    'post_type' => 'product',
    'posts_per_page' => '12',
    'offset' => 0,
    'order' => 'DESC',
    'post_status' => 'publish',
    'meta_query' => array(
    'relation' => 'OR',
    array( // Simple products type
    'key' => '_sale_price',
    'value' => 0,
    'compare' => '>',
    'type' => 'numeric'
    ),
    array( // Variable products type
    'key' => '_min_variation_sale_price',
    'value' => 0,
    'compare' => '>',
    'type' => 'numeric'
    )
    )
     
    );
    $the_query = new WP_Query( $arms ); ?>
    <?php if ( $the_query->have_posts() ) : ?>
    <?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
    <article class="swiper-slide indx-article">
    <div class="img-post">
    <a href="<?php the_permalink(); ?>"> 
     
     
     
    محصول متغیر رو طبق آموزش ها ایجاد کردم و بعید میدونم مشکلی داشته باشه
    نمونه اش در لینک زیر هست
    https://gameplaza.ir/product/tekken-7/
  2. به نام خدا

    با عرض سلام و ادب

    بنده برای اولین بار محصول متغیر ایجاد کردم که در بخش محصولات تخفیف خورده صفحه نخست نمایش داده نمیشه ولی در صفحه ی که به نام محصولات تخفیف ایجاد کردم این محصول با بقیه محصولات تخفیف خورده دیده میشه

    مشکل از قالب هستش؟چیکار باید بکنم دقیقا؟

×
×
  • اضافه کردن...