Issue with paging on home page
-
PS : Sorry i would like to put it in”Support” forum.
Hello,
I created a child theme of Graphene and choose a page as homepage.
My issue is when i click on “older posts” on at the bottom page.
I see “/page/2/” in URL but posts are the same.
This is my template page :
<?php
/*
Template Name: Accueil
*/
global $graphene_settings;
get_header(); ?>
<?php
do_action('graphene_index_pre_loop');
//query_posts( array('showposts' => 1, 'cat' => '-4,-22') );
/* Run the loop to output the posts.
* If you want to overload this in a child theme then include a file
* called loop-index.php and that will be used instead.
*/
/*while ( have_posts() ) {
the_post();
get_template_part( 'loop', 'alaune' );
}*/
/* debut partenaire */
query_posts( array('showposts' => 1, 'category_name' => 'partenaire') );
/* Run the loop to output the posts.
* If you want to overload this in a child theme then include a file
* called loop-index.php and that will be used instead.
*/
while ( have_posts() ) {
the_post();
get_template_part( 'loop', 'accueilautres' );
}
/* fin partenaire */
/* debut 3eme à 10ème titres à la 1 : tout sauf actus et partenaires */
query_posts( array('showposts' => 8, 'cat' => '-4,-22', 'offset' => 1) );
/* Run the loop to output the posts.
* If you want to overload this in a child theme then include a file
* called loop-index.php and that will be used instead.
*/
while ( have_posts() ) {
the_post();
get_template_part( 'loop', 'accueilautres' );
}
/* Posts navigation. */
graphene_posts_nav();
?>
<?php get_footer(); ?>Do you know why i haven’t older posts ?
Admin
Maybe this will help you:
http://buzz.hyperspective.com/how-to-create-a-wordpress-query_post-with-pagination/
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.