• Here is my custom theme 4 last posts code! can i make a pagination that will load only the ID lastposts and not all the page?

    <div class="lastposts">
    		<?php
    		$temp = $wp_query; $wp_query= null;
    		$wp_query = new WP_Query(); $wp_query->query('cat=2&showposts=4' . '&paged='.$paged);
    		while ($wp_query->have_posts()) : $wp_query->the_post(); ?>
    						<div id="thepost">
    							<div class="view view-fifth">
    								<?php if ( has_post_thumbnail()) : the_post_thumbnail('thumbnail'); endif; ?>
    							<div class="mask">
    								<h2>LIVEU</h2>
    								<p><?php echo get_the_date(); ?></p>
    							</div>
    						</div>
    						<p class="posttitle"><a>" rel="<?php the_ID(); ?>"><?php the_title(); ?></a></p>
    						<hr class="hr"/>
    						<p class="postcontent"><?php echo substr(strip_tags($post->post_content), 42, 120);?>... <a>" rel="<?php the_ID(); ?>">περισσότερα</a></p>
    						</div>
    <?php endwhile; ?>
    
    				</div>

    [Moderator Note: Please post code & markup between single backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

  • The topic ‘Ajax Pagination! Is tha possible?’ is closed to new replies.