How to use offset in WP_Query

Question

Where do I put the offset function?

        <?php
            $args = array(
                'post_type' => 'post',
                'category_name' => 'category',
                'orderby' => 'date',
                'order' => 'DESC',
                'showposts' => 4);

            $wp_query = new WP_Query($args);
            if($wp_query->have_posts()) :
            while($wp_query->have_posts()) :
            $wp_query->the_post(); ?>
0
, , nabuke 2 years 2019-11-20T22:28:11-05:00 0 Answers 82 views 0

Leave an answer

Browse
Browse