• Resolved mdubey

    (@mdubey)


    Hello sir , i created one post page but i want some pagination below my post page

    please help me asap

    the code for my post page is bellow

    <div class="row wow fadeInUp" >
    
    				<?php
    
    						// WP_Query arguments
    							$args = array (
    								'category_name'          => 'album',
    								'pagination'             => true,
    								'posts_per_page'         => '9',
    								'order'                  => 'DESC',
    								'orderby'                => 'date',
    							);
    
    							// The Query
    							$query = new WP_Query( $args );
    
    							// The Loop
    							if ( $query->have_posts() )
    
    								{
    
    									while ( $query->have_posts() ) 
    
    										{
    
    											$query->the_post();
    
    												// do something
    											    get_template_part( 'content', 'g' );
    
    										}
    
    								}
    
    								else {
    									// no posts found
    									echo "<h2>There are no post found</h2>";
    								}
    
    								// Restore original Post Data
    								wp_reset_postdata();
    
    				?>
    
    			</div>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘i want some pagination’ is closed to new replies.