Forum Replies Created

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter poylar

    (@poylar)

    @dholovnia on shop page is work ok

    Thread Starter poylar

    (@poylar)

    @dholovnia

    Здравствуй,
    
    Покажите там продукты, чтобы было что фильтровать, и таким же образом покажите там фильтры. Вы можете использовать боковую панель или шорткоды фильтра / группы.
    
    С уважением,
    Дима

    I try get product like that

     <div class="products">
          <?php
          echo do_shortcode('[br_filter_single filter_id=101]');
          $args = array(
            'post_type' => 'product',
            'posts_per_page' => 12
          );
          $loop = new WP_Query($args);
          if ($loop->have_posts()) {
            while ($loop->have_posts()) : $loop->the_post();
              wc_get_template_part('content', 'product');
            endwhile;
          } else {
            echo __('No products found');
          }
          wp_reset_postdata();
          ?>
        </div>
        <!– /.products–>
    

    but i have error ‘Is WC page’ and other

    https://cdn.discordapp.com/attachments/702881663247581286/872780885043335188/unknown.png

    Thread Starter poylar

    (@poylar)

    -UPD.
    I remember this may be conflict with w3total cache plugin. cuz i disable him it works correcly . Well how this fix?

    Thread Starter poylar

    (@poylar)

    like is_tax(‘services_tax’)
    but i need something like this:
    is_post_tax(‘services_tax’)

    Thread Starter poylar

    (@poylar)

    I need check :
    if on post term page add to this term class in term list
    and check only for the first term in the hierarchy
    simple:
    There are terms:
    fruits and vegetables.
    Fruits have notes apples and pears.
    How can I add a class to the name “fruits” if we are on the page apples or pears?
    Now they work for me only if we are on the fruits page, then $ class is added to it
    In short, the essence of the work as with menu items in fact.

    Thread Starter poylar

    (@poylar)

    site health infinity loading
    if i turn off pods -> ok
    i hvae only 2 plugins pods and contact form 7
    have custom theme from underscope

    Thread Starter poylar

    (@poylar)

    i use OpenServer if this matters

    Thread Starter poylar

    (@poylar)

    on contact form page

    Uncaught TypeError: Cannot read property ‘send’ of undefined
    at mf_use_new_image_gallery (mf_admin.js?ver=5.4:338)
    at HTMLDocument.<anonymous> (admin.php?page=wpcf7:414)
    at i (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.4:2)
    at Object.fireWith [as resolveWith] (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.4:2)
    at Function.ready (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.4:2)
    at HTMLDocument.J (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.4:2)

    and after ~10 second this

    mf_admin.js?ver=5.4:338 Uncaught TypeError: Cannot read property ‘send’ of undefined
    at mf_use_new_image_gallery (mf_admin.js?ver=5.4:338)
    at HTMLDocument.<anonymous> (admin.php?page=wpcf7:414)
    at i (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.4:2)
    at Object.fireWith [as resolveWith] (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.4:2)
    at Function.ready (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.4:2)
    at HTMLDocument.J (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.4:2)
    mf_use_new_image_gallery @ mf_admin.js?ver=5.4:338
    (anonymous) @ admin.php?page=wpcf7:414
    i @ load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.4:2
    fireWith @ load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.4:2
    ready @ load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.4:2
    J @ load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.4:2
    wp-auth-check.min.js?ver=5.4:2 Uncaught TypeError: Cannot read property ‘hasClass’ of undefined
    at HTMLDocument.<anonymous> (wp-auth-check.min.js?ver=5.4:2)
    at HTMLDocument.dispatch (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.4:3)
    at HTMLDocument.r.handle (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.4:3)
    at Object.trigger (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.4:3)
    at Object.a.event.trigger (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.4:8)
    at HTMLDocument.<anonymous> (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.4:3)
    at Function.each (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.4:2)
    at a.fn.init.each (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.4:2)
    at a.fn.init.trigger (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.4:3)
    at Object.<anonymous> (heartbeat.min.js?ver=5.4:2)

    Thread Starter poylar

    (@poylar)

    No, i just copypaste from official docs
    anyway, I solved my problem like that

    $price = pods_field_display( 'services_tax', $term->term_id, 'price1', false);
                  setup_postdata($price);
                  echo $price;
    Thread Starter poylar

    (@poylar)

    i also used this

    <div class="prices-item">
                <?php
      
        $params = array(
            'where'   => 't.name LIKE "%rings%"',
            'limit'   => -1  
        );
    
        
        $books = pods( 'services_tax', $params );
    
        if ( 0 < $books->total() ) {
            while ( $books->fetch() ) {
    ?>
                <h2><?php echo $books->display( 'price1' ); ?></h2>
                <?php     }}?>
              </div>

    but this dont work too.
    My taxonomy name services_tax
    my field name price1
    I have an empty output

    Thread Starter poylar

    (@poylar)

    Thanks for your reply. I appreciate it.
    I have tried many different options. This is one of the last. So I’m probably just looking for the right solution.

Viewing 11 replies - 1 through 11 (of 11 total)