How to hide pagination in Wordpress?

0 like 0 dislike
11 views
I have a plugin WP-PageNavi. I deduce with my edits:
Page navigation<?php next_posts_link('Следующая страница »') ?><?php wp_pagenavi();  ?>


But the navigation bar appears on pages where it is not needed. Mean not the pagination, namely the block without content (Only with wp-pagenavi-title) (CSS)

What to prescribe to this piece of code was hiding, if these do not?
by | 11 views

1 Answer

0 like 0 dislike
Hello!
Should help - https://wp-kama.ru/function/is_paged

<?php if( !is_paged() ){ ?>\r\rPage navigation\r<?php next_posts_link('Следующая страница »') ?>\r<?php wp_pagenavi();  ?>\r\r<?php } ?>
by

Related questions

0 like 0 dislike
3 answers
asked Aug 2, 2019 by Lord_Dantes
0 like 0 dislike
1 answer
0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked May 21, 2019 by alexander_chn
110,608 questions
257,186 answers
0 comments
33,652 users