Change pagination_base
-
Hi, I’ve changed my pagination base. But unfortunately with new links Wp PageNavi pagination doesn’t work. So far I can’t understand why it is so. Any help would be greatly appreciated.
I change my pagination base with this code (‘pages’ – are new pagination base):
function custom_pagination_base() { global $wp_rewrite; $pagination_base = get_option( 'pagination_base' ); $wp_rewrite->pagination_base = empty( $pagination_base ) ? 'pages' : $pagination_base; } add_action( 'init', 'custom_pagination_base' );
Do you have any plans to add pagination base option to future plugin releases?
I’ve found useful plugin which changes author base. Pagination base can be changed the same way.
Thank you for any help.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Change pagination_base’ is closed to new replies.