Access our premium support and let us know your problems, we will help you solve them.

0
No products in the cart.

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: pagination on custom post wp_query #9514
    blanktayyab-chaudhary
    Participant
    $paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1;
    $args = array(
        'post_type'     => 'wp-rest-api-log',
        'posts_per_page' => 5,
        'paged'         => $paged,
        'orderby'       => 'date',
    );
    
    $loop = new WP_Query( $args );
    
    if ($loop->have_posts()) :
        while ($loop->have_posts()) : $loop->the_post();
          echo the_title();
        endwhile;
        
        echo "<nav class=\"sw-pagination\">";
        $big = 999999999; // need an unlikely integer
        echo paginate_links( array(
            'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ),
            'format' => '?paged=%#%',
            'current' => max( 1, get_query_var('paged') ),
            'total' => $loop->max_num_pages
        ) );
        echo "</nav>";
    endif;
    
    wp_reset_query();
    
    in reply to: Woocommerce template overriding not working #9446
    blanktayyab-chaudhary
    Participant

    I’m facing the same issue. I am using the JupiterX theme with Elementor and trying to override the checkout template in the JupiterX Child theme, but it’s not loading. I have double checked the path, it’s like themes/jupiterx-child/woocommerce/checkout/form-checkout.php.

    Solution:

    I have resolved the issue. Actually, the JupiterX theme has its own WooCommerce overriding structure, that is themes/jupiterx/lib/templates/woocommerce/checkout/form-checkout.php and the same for the child theme that is themes/jupiterx-child/lib/templates/woocommerce/checkout/form-checkout.php.

    For more details: themes.artbees.net/docs/overriding-woocommerce-templates

Viewing 2 posts - 1 through 2 (of 2 total)