Skip to main content
Improved title, text, tags
Source Link
Jan Fabry
  • 30.5k
  • 4
  • 90
  • 136

I want to pass Skip 5 posts in the index.php page .. problem withlatest post while paging?

In the index.php page index.php page, I need to passskip 5 posts ( thethe last 5 posts in the blog to be hide).

but when I want to using wp_paginate pluginuse the WP-Paginate plugin, but all pagepages show the same.

  I'm using offset=5 ..

offset=5, this is my code:

    <?php  $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;?>
<?php   $additional_loop = new WP_Query("offset=5&paged=".$paged);  
        if ($additional_loop->have_posts()) :

        while ($additional_loop->have_posts()) : $additional_loop->the_post();
        the_title();?><br/>
        <?php the_content();?>
        <?php endwhile;endif;?>
        <?php if(function_exists('wp_paginate')) {
    wp_paginate('range=4&anchor=2&nextpage=Next&previouspage=Previous');
} ?>

I want to pass 5 posts in the index.php page .. problem with paging

In the index.php page , I need to pass 5 posts ( the last 5 posts in blog to be hide).

but when I want to using wp_paginate plugin all page same.

  I'm using offset=5 ..

this is my code

    <?php  $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;?>
<?php   $additional_loop = new WP_Query("offset=5&paged=".$paged);  
        if ($additional_loop->have_posts()) :

        while ($additional_loop->have_posts()) : $additional_loop->the_post();
        the_title();?><br/>
        <?php the_content();?>
        <?php endwhile;endif;?>
        <?php if(function_exists('wp_paginate')) {
    ('range=4&anchor=2&nextpage=Next&previouspage=Previous');
} ?>

Skip 5 latest post while paging?

In the index.php page, I need to skip 5 posts (the last 5 posts in the blog).

I use the WP-Paginate plugin, but all pages show the same. I'm using offset=5, this is my code:

<?php  $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;?>
<?php   $additional_loop = new WP_Query("offset=5&paged=".$paged);  
        if ($additional_loop->have_posts()) :

        while ($additional_loop->have_posts()) : $additional_loop->the_post();
        the_title();?><br/>
        <?php the_content();?>
        <?php endwhile;endif;?>
        <?php if(function_exists('wp_paginate')) {
    wp_paginate('range=4&anchor=2&nextpage=Next&previouspage=Previous');
} ?>
Source Link
AboSami
  • 107
  • 1
  • 4
  • 11

I want to pass 5 posts in the index.php page .. problem with paging

In the index.php page , I need to pass 5 posts ( the last 5 posts in blog to be hide).

but when I want to using wp_paginate plugin all page same.

I'm using offset=5 ..

this is my code

    <?php  $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;?>
<?php   $additional_loop = new WP_Query("offset=5&paged=".$paged);  
        if ($additional_loop->have_posts()) :

        while ($additional_loop->have_posts()) : $additional_loop->the_post();
        the_title();?><br/>
        <?php the_content();?>
        <?php endwhile;endif;?>
        <?php if(function_exists('wp_paginate')) {
    ('range=4&anchor=2&nextpage=Next&previouspage=Previous');
} ?>