: 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
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.
More posts by @Moriarity557
1 Comments
Sorted by latest first Latest Oldest Best
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
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.