Return to Snippet

Revision: 68922
at March 18, 2015 20:37 by burnandbass


Initial Code
function custom_pagination_base()
{
    global $wp_rewrite;

    $wp_rewrite->pagination_base = 'p';

    $wp_rewrite->flush_rules();
}

add_action('init', 'custom_pagination_base', 1);

Initial URL

                                

Initial Description
Rewrite "page" to "p" so /page/10 becomes /p/10

Initial Title
Rewrite pagination slug in Wordpress

Initial Tags

                                

Initial Language
PHP