Hi,
Is the pagination present on page? Try to add after the while cicle this the_posts_pagination() instead of wp_pagenavi()
Also please post the plugin configuration.
regards, have a nice day! 🙂
i tried to use the_posts_pagination() but still not working . i think there should be a code i should add to my template function or something…
after u said to use the the_posts_pagination() =>>>
Navigation Selector : .navigation
Next Selector : .next
Item Selector : .post
Content Selector : #container
if u don’t mind please check my very very Simple code and help !!! i really need to fix this …
This Code is just for testing if it works or not :
HTML :
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/style.css"/>
</head>
<body>
<div id="container">
<?php if(have_posts()) : ?> <?php while(have_posts()) : the_post(); ?>
<div class="post"></div>
<?php endwhile; ?>
<?php endif; ?>
<?php the_posts_pagination() ?>
</div>
</body>
</html>
And a pretty simple css :
#container{
width: 700px;
height: auto;
margin: 0 auto;
margin-top: 50px;
}
.post{
width: 100%;
height: 500px;
background: red;
margin-top: 20px;
}
Hi,
I think that the selector “Next Selector” is wrong, try with this conf:
Navigation Selector : nav.navigation
Next Selector : nav.navigation a.next
Item Selector : .post
Content Selector : #container
Let me know. Regards
Still Not Working !!! Are you Sure That there isn’t any code i should add to function.php or …
Please Help ! i really Should Fix This
Hi,
try to change the html code this way
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/style.css"/>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div id="container">
<?php if(have_posts()) : ?> <?php while(have_posts()) : the_post(); ?>
<div class="post"></div>
<?php endwhile; ?>
<?php endif; ?>
<?php the_posts_pagination() ?>
</div>
<?php wp_footer(); ?>
</body>
</html>
I’ve added wp_footer() and wp_head() functions for print scripts or data on the front end.
Let me knwow. regards 🙂
OMG Thank You So Much Dude … it worked <3 ThanQ