Mobile app version of vmapp.org
Login or Join
Moriarity557

: Disable wp-pagenavi on pages with template using the wordpress loop How can i disable wp-pagenavi on pages using templates and the wordpress loop? It seems that wp-pagenavi adds itself automatically

@Moriarity557

Posted in: #Wordpress

How can i disable wp-pagenavi on pages using templates and the wordpress loop? It seems that wp-pagenavi adds itself automatically wherever the
wordpress loop is used, not counting that it is a page or not.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Moriarity557

1 Comments

Sorted by latest first Latest Oldest Best

 

@Fox8124981

you probably have wp_pagenavi() in the footer.php file.

if you don't want it to appear in the page.php you can do this.

<?php if(!is_page()) { ?>

// if it is not a page echo the page navigation

<?php wp_pagenavi(); ?>

<?php } else { ?>

// if it is a page do nothing or you can specify.

<?php } ?>


but i'm not quite sure of what you mean by page template. if i'm wrong give me the details on that.

good luck

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme