Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. function custom_nextpage_links($defaults) {
  2. $args = array(
  3. 'before' => '<ul class="my-paginated-posts"><ul><li>' . __( 'Section:', 'textdomain' ),
  4. 'after' => '</li></ul>',
  5. 'link_before' => '<span class="page-link">',
  6. 'link_after' => '</span>',
  7. 'separator' => ' ',
  8. 'nextpagelink' => __('Next &raquo', 'textdomain'),
  9. 'next_or_number' => '',
  10. 'previouspagelink' => __( '&laquo Previous', 'textdomain' ),
  11. 'pagelink' => '%',
  12. 'echo' => 1
  13. );
  14.  
  15. $r = wp_parse_args($args, $defaults);
  16.  
  17. return $r;
  18. }
  19. add_filter('wp_link_pages_args','custom_nextpage_links');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement