Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function my_theme_navigation_debug()
- {
- global $shortname;
- echo 'This is the Option Value: ' . get_option( $shortname . '_next_prev_or_paginate' );
- echo '<br /><br />This is the Previous Link: ';
- previous_posts_link ('Newer');
- echo '<br /><br />This is the Next Link: ';
- next_posts_link('Older');
- global $wp_query;
- $big = 999999999;
- echo '<br /><br />These are the Paginated Links: ';
- echo paginate_links( array(
- 'base' => str_replace( $big, '%#%', get_pagenum_link( $big ) ),
- 'format' => '?paged=%#%',
- 'current' => max( 1, get_query_var('paged') ),
- 'total' => $wp_query->max_num_pages
- )
- );
- }
- my_theme_navigation_debug();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement