The MU forums have moved to WordPress.org

Automatically activate permalinks on all blogs (5 posts)

  1. Anonymous
    Unregistered
    Posted 15 years ago #

    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?

  2. dsader
    Member
    Posted 15 years ago #

    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%/');
    }
  3. Houston Web Designer
    Member
    Posted 15 years ago #

    Where would that code be added on that page?

  4. dsader
    Member
    Posted 15 years ago #

    Search the schema.php page for "permalink" and edit it.

    OR

    Add an mu-plugin to do the same.

  5. sniperfora
    Member
    Posted 15 years ago #

    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

About this Topic

  • Started 15 years ago by padams02
  • Latest reply from sniperfora