When a new user comes to my site, creates a blog, I want permalinks to be automatically activated. I have already installed my MU, and am not interested in reinstalling. Any suggestions?
When a new user comes to my site, creates a blog, I want permalinks to be automatically activated. I have already installed my MU, and am not interested in reinstalling. Any suggestions?
Check your permalink setting in wp-admin/includes/schema.php. You could edit the setting there or add an mu-plugin such as
add_action('wpmu_new_blog', 'ds_new_blog_settings');
function ds_new_blog_settings($blog_id) {
update_blog_option( $blog_id, 'permalink_structure', '/%year%/%monthnum%/%day%/%postname%/');
}
Where would that code be added on that page?
Search the schema.php page for "permalink" and edit it.
OR
Add an mu-plugin to do the same.
hi
I want to change the options-permalink.php for post to
/%year%/%postname%/
on all mu wordpress blogs
I have already install it
and I want after that any new blog use
/%year%/%postname%/
as defualt
can any one please tell me how do I did that