Support » Plugin: WordPress MU Sitewide Tags Pages » [Plugin: WordPress MU Sitewide Tags Pages] want to change Main Blog ID – help?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Ron Rennick


    Fill in a blog name instead of checking the post to main blog. SWT only creates a blog if the name you type in doesn’t exist.

    Thanks, but filling in a blog name doesn’t USE that blog – it creates a blog with that name as a subdomain of the blog you are logged in to. What I want to use is If I type “blogs” into the textbox and I am logged into, it creates If I am logged into it creates SO I need to change the blogID somewhere in the php…but I can’t find it.

    Plugin Author Ron Rennick


    What version of WordPress or WordPress MU do you have?

    we’re running 3.2.1.

    Does it look like this is the bit I need to change? If the “post to main blog” box is checked, then I want it to use blog_id 147 instead of what it is doing here…how?

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Ok, I fixed it by hardcoding the name of the blog in. Seems to work. Thanks for your help.


    nearlyjen, any chance you could explain what you did here, including code snippets, to fix this? I’m also using this plugin for a school multisite setup, and we seem to be encountering similar queries 🙂

    Hi Merkin – I’m away from work until after Thanksgiving, but I’d be happy to post it all for you when I get back! Look for it next Tuesday : )


    Hi – at line 242 I just changed the domain to be = to the name of the blog I wanted to use as the tags blog, and you can see the old code commented out after. This has worked without any problems so far.

    } else {
    			update_sitewide_tags_option( 'tags_blog_main_blog', 0 );
    			$tags_blog = $_POST[ 'tags_blog' ];
    			update_sitewide_tags_option( 'tags_blog', $tags_blog );
    			if( constant( 'VHOST' ) == 'yes' ) {
    				$domain = ''/*$tags_blog . '.' . $current_site->domain*/;
    				$path = $current_site->path;
Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Plugin: WordPress MU Sitewide Tags Pages] want to change Main Blog ID – help?’ is closed to new replies.