Advertisement
Guest User

Untitled

a guest
Oct 18th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. <?php
  2. if(!get_previous_posts_link()) {
  3. echo '<div>&lsaquo;</div>' ;
  4. } else {
  5. previous_posts_link('&lsaquo;');
  6. }
  7.  
  8. the_posts_pagination(array(
  9. 'prev_text' => __('&lsaquo;'),
  10. 'next_text' => __('&rsaquo;'),
  11. 'prev_next' => false,));
  12.  
  13. if(!get_next_posts_link()) {
  14. echo '<div>&rsaquo;<div>' ;
  15. } else {
  16. next_posts_link('&rsaquo;');
  17. }
  18. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement