Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7018955
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:07:09+00:00 2026-05-27T23:07:09+00:00

<?php /** * Template Name: Blog page * Description: The blog page */ get_header();

  • 0
    <?php
/**
* Template Name: Blog page
* Description: The blog page
*/
get_header(); ?>


<?php
$args = array( 'numberposts' => 3 );
$lastposts = get_posts( $args );
foreach($lastposts as $post) : setup_postdata($post); ?>
<div class="postblog">
    <h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>

    <span class="postdetails">
    <?php the_time ('j F, Y'); ?>&nbsp;&nbsp;&nbsp;<span class="bullet">&bull;</span>&nbsp;&nbsp;&nbsp;Posted in:&nbsp;<?php the_category(', '); ?>
    </span>

    <?php the_content(); ?>

    <div class="fb">
    <?php if(function_exists("wpfblike")) echo wpfblike(); ?>
    </div>

    </div>

<?php endforeach; ?>


</div>
<?php get_footer(); ?>

Whenever I try to use WP_Paginate or Pagenavi with this, it refuses to show up, no matter what I try to use I cannot get page navigation. I have 5 posts and only three are showing (as per the code above) so how do I get to the other two?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T23:07:10+00:00Added an answer on May 27, 2026 at 11:07 pm

    Have you tried using next_posts_links and previous_posts_links?

    <?php
    $page = (get_query_var('paged')) ? get_query_var('paged') : 1; 
    query_posts("showposts=3&paged=$page");
    ?>
    <?php while (have_posts()) : the_post(); ?>
    // display your post
    <?php endwhile; ?>
    // display navigation
    <div class="navigation">
    <div class="alignleft"><?php next_posts_link('&larr; Older Entries') ?></div>
    <div class="alignright"><?php previous_posts_link('Newer Entries &rarr;') ?></div>
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So this is the basic template page code: <?php /* * Template name: About
I have create separated page says service.php with following code <?php /* Template Name:
I have created a custom page named 'products' <?php /* Template Name: Products */
I recently created a new template page, I put the obligatory <?php /* Template
Alright so I have a custom page template designed with javascript and php (lets
I've set-up a basic template that contains custom fields meta: <?php /* Template Name:
After loading a PHP template (using jQuery's load function), this simple script won't make
i have two files:(localhost/template/) index.php template.php each time when i create an article(an article
There are loads of questions for the right PHP template engine, but none of
Is there an easy-ish way to modify the webform-form-tpl.php template to show disclaimer text

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.