I would like the URLs for "pages" on my blog (which is to say the collections of titles and excerpts fpr 10 entries) to be called something else, such as "groups", so that the URL for the page for the 10 most recent entries would be www.[foobar]/group/1
, and so on. How can this be achieved?
I would like the URLs for "pages" on my blog (which is to say the collections of titles and excerpts fpr 10 entries) to be called something else, such as "groups", so that the URL for the page for the 10 most recent entries would be www.[foobar]/group/1
, and so on. How can this be achieved?
1 Answer
Reset to default 0Try this:
function re_write_rules() {
global $wp_rewrite;
$wp_rewrite->pagination_base = 'group';
$wp_rewrite->flush_rules();
}
add_action('init', 're_write_rules');
Groups
and the permalink slug for itgroups
. – Tony Djukic Commented Apr 21, 2020 at 13:26