<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SEOserpent &#187; wpmu</title>
	<atom:link href="http://seoserpent.com/tag/wpmu/feed" rel="self" type="application/rss+xml" />
	<link>http://seoserpent.com</link>
	<description>A search marketing company.</description>
	<lastBuildDate>Mon, 06 Feb 2012 19:08:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Get Your WordPress Multisite Blog Slug</title>
		<link>http://seoserpent.com/wordpress/multisite-blog-slug</link>
		<comments>http://seoserpent.com/wordpress/multisite-blog-slug#comments</comments>
		<pubDate>Thu, 23 Sep 2010 14:04:29 +0000</pubDate>
		<dc:creator>Marty Martin</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[$GLOBALS]]></category>
		<category><![CDATA[get_blog_details]]></category>
		<category><![CDATA[wpmu]]></category>

		<guid isPermaLink="false">http://seoserpent.com/?p=374</guid>
		<description><![CDATA[I chose this subject to write about for two reasons. One: I&#8217;m sure there are folks out there who will find this useful. And Two: I can never remember it myself so by writing about it here, I won&#8217;t have to remember, I can just refer back to my own blog! Often, when using WordPress [...]]]></description>
			<content:encoded><![CDATA[<p>I chose this subject to write about for two reasons.  One: I&#8217;m sure there are folks out there who will find this useful.  And Two: I can never remember it myself so by writing about it here, I won&#8217;t have to remember, I can just refer back to my own blog!</p>
<p>Often, when using WordPress multisite as a content management system rather than a blog network, I have the need to use a blog slug in image paths, or when doing DB queries or whatever.  There are lots of reasons, but here&#8217;s how you get it ></p>
<pre class="brush: php; title: ; notranslate">
// This is one way
$blog_details =  get_blog_details($GLOBALS['blog_id']);
$slug = str_replace('/','',$blog_details-&gt;path);
echo $slug;

// This way makes more sense to me since there's already a global $var for the path
$slug = str_replace('/','',$GLOBALS['path']);
echo $slug;
</pre>
<p>I find the $GLOBALS variable to be really useful.  If you&#8217;d like to see all the stuff you can get out of there, just drop this line in your theme somewhere (it&#8217;s quite long, so best not to do it on a production site)-</p>
<pre class="brush: php; title: ; notranslate">
print_r($GLOBALS);
</pre>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://seoserpent.com/wordpress/multisite-blog-slug/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WPMU Sitewide Tags &#8211; Posts don&#8217;t show up?</title>
		<link>http://seoserpent.com/wordpress/wpmu-sitewide-tags</link>
		<comments>http://seoserpent.com/wordpress/wpmu-sitewide-tags#comments</comments>
		<pubDate>Sat, 06 Mar 2010 01:49:35 +0000</pubDate>
		<dc:creator>Marty Martin</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[wpmu]]></category>

		<guid isPermaLink="false">http://seoserpent.com/?p=123</guid>
		<description><![CDATA[I&#8217;m working on a new WordPress Mu site and am using Donncha&#8217;s fantastic Sitewide Tags Plugin to pull all the posts from across my network of blogs onto one master blog for indexing features across my site. One thing I didn&#8217;t realize however was that (at the moment) it only works on posts published AFTER [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m working on a new WordPress Mu site and am using Donncha&#8217;s fantastic <a href="http://ocaoimh.ie/wordpress-mu-sitewide-tags/">Sitewide Tags Plugin</a> to pull all the posts from across my network of blogs onto one master blog for indexing features across my site.</p>
<p>One thing I didn&#8217;t realize however was that (at the moment) it only works on posts published AFTER you start using it.  If you&#8217;re like me you have 100s or 1000s or even more posts already in your network.</p>
<p>I stumbled across some code the other day that will iterate through your blogs and pull the existing posts into the new tags blog.  So <a href="http://colas.nahaboo.net/">Colas Nahaboo</a>, whoever you are, thanks for <a href="http://pastebin.com/fe375d1">this awesome bit of code</a>:</p>
<pre class="brush: php; title: ; notranslate">
$posts = $wpdb-&gt;get_col( &quot;SELECT ID FROM $wpdb-&gt;posts WHERE post_status = 'publish'&quot; );
if ( !empty($posts) ) {
    foreach ( $posts as $post ) {
        if($post != 1 &amp;&amp; $post != 2)
            sitewide_tags_post($post, get_post($post));
    }
}
</pre>
<p>The easy thing to do, is using the <a href="http://plugins.paidtoblog.com/wpmu-power-tools/">WPMU Power Tools plug-in</a>,  from Brian Freeman, run the above query exactly as it is across all blogs and within a few seconds all of your posts will be pulled in.  Easy!</p>
<p>Thanks to <a href="http://wpmututorials.com/">Andrea</a> and <a href="http://ocaoimh.ie/">Donncha</a> for tips over the past few days, I always appreciate the help.</p>
]]></content:encoded>
			<wfw:commentRss>http://seoserpent.com/wordpress/wpmu-sitewide-tags/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WPMU Site-wide Breadcrumbs</title>
		<link>http://seoserpent.com/wordpress/wpmu-sitewide-breadcrumbs</link>
		<comments>http://seoserpent.com/wordpress/wpmu-sitewide-breadcrumbs#comments</comments>
		<pubDate>Tue, 23 Feb 2010 16:05:03 +0000</pubDate>
		<dc:creator>Marty Martin</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[wpmu]]></category>

		<guid isPermaLink="false">http://seoserpent.com/?p=119</guid>
		<description><![CDATA[Kudos to Dimox for a great non-plugin WordPress function for creating breadcrumbs. For someone like me though, who is implementing a WordPress Mu site using &#8220;blogs&#8221; as content sections instead of the traditional community of blogs, I&#8217;d like to be able to have breadcrumbs that go more like this- Home (root uri) » Blog Home [...]]]></description>
			<content:encoded><![CDATA[<p>Kudos to Dimox for a great non-plugin <a href="http://dimox.net/wordpress-breadcrumbs-without-a-plugin/">WordPress function for creating breadcrumbs</a>.</p>
<p>For someone like me though, who is implementing a WordPress Mu site using &#8220;blogs&#8221; as content sections instead of the traditional community of blogs, I&#8217;d like to be able to have breadcrumbs that go more like this-</p>
<p>Home (root uri) » Blog Home (blog uri) » normal breadcrumbs</p>
<p>To accomplish this, I just made a few modifications to Dimox&#8217;s code and with the power of WordPress, Shazam!, it was done.</p>
<p>Here&#8217;s the chunk of code I added/modified (note, this code goes in your themes&#8217; functions.php file):</p>
<pre class="brush: php; title: ; notranslate">
// change the value of $home to your site's root URI (first level in the breadcrumbs)
$home = 'http://foo.com/';

// add two new variables for your blog info (second level in the breadcrumbs)

$blogURI = get_bloginfo('url');
$blogName = get_bloginfo('name');

// directly above the first line of code below in the original source, add the second row that references the new vars you've created  (for good measure I also nofollowed the home URI)

echo '&lt;a href=&quot;' . $home . '&quot; rel=&quot;nofollow&quot;&gt;' . $name . '&lt;/a&gt; ' . $delimiter . ' ';
/* if blog is home blog, don't display the blog name */
if ($blog_id != 1) {	echo '&lt;a href=&quot;' . $blogURI . '&quot;&gt;' . $blogName . '&lt;/a&gt; ' . $delimiter . ' '; }
</pre>
<p>And that&#8217;s it, now just do everything else as Dimox suggests on his site.</p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://seoserpent.com/wordpress/wpmu-sitewide-breadcrumbs/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

