<?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>Maranatha Media Production</title>
	<atom:link href="http://maranathaproductions.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://maranathaproductions.com</link>
	<description></description>
	<lastBuildDate>Thu, 21 Feb 2013 17:20:39 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.1</generator>
		<item>
		<title>How to fix WordPress Multisite IIS pagination trailing slash issues</title>
		<link>http://maranathaproductions.com/2013/02/how-to-fix-wordpress-multisite-iis-pagination-trailing-slash-issues/</link>
		<comments>http://maranathaproductions.com/2013/02/how-to-fix-wordpress-multisite-iis-pagination-trailing-slash-issues/#comments</comments>
		<pubDate>Thu, 21 Feb 2013 17:20:39 +0000</pubDate>
		<dc:creator>mmp_stevetronix</dc:creator>
				<category><![CDATA[Questions]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://maranathaproductions.com/?p=146</guid>
		<description><![CDATA[Using WordPress Multisite  (3.3 &#8211; 3.4) on IIS7 with the standard URL Rewrite rules causes issues with trailing slashes and pagination links. Visiting a multisite blog without a trailing slash http://mydomain.com/blog1 causes pagination links to repeat and duplicate the blog slug in the URL causing a 404 error: http://mydomain.com/blog1/blog1/page/2/ To fix this, open up wp-includes/link-template.php [...]]]></description>
			<content:encoded><![CDATA[<p>Using WordPress Multisite  (3.3 &#8211; 3.4) on IIS7 with the standard URL Rewrite rules causes issues with trailing slashes and pagination links.</p>
<p>Visiting a multisite blog without a trailing slash http://mydomain.com/blog1 causes pagination links to repeat and duplicate the blog slug in the URL causing a 404 error:</p>
<p>http://mydomain.com/blog1/blog1/page/2/</p>
<p>To fix this, open up wp-includes/link-template.php and comment out line 1389 replacing it with the following:</p>
<pre class="brush: php; title: ; notranslate">
//$home_root = preg_quote( trailingslashit( $home_root ), '|' );
$home_root = preg_quote( $home_root, '|' );
</pre>
]]></content:encoded>
			<wfw:commentRss>http://maranathaproductions.com/2013/02/how-to-fix-wordpress-multisite-iis-pagination-trailing-slash-issues/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>wp_nav_menu() generates an extra div?</title>
		<link>http://maranathaproductions.com/2013/01/wp_nav_menu-generates-an-extra-div/</link>
		<comments>http://maranathaproductions.com/2013/01/wp_nav_menu-generates-an-extra-div/#comments</comments>
		<pubDate>Thu, 10 Jan 2013 17:49:22 +0000</pubDate>
		<dc:creator>mmp_stevetronix</dc:creator>
				<category><![CDATA[Questions]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[wp_nav_menu]]></category>

		<guid isPermaLink="false">http://maranathaproductions.com/?p=141</guid>
		<description><![CDATA[If wp_nav_menu() is generating an extra and applying the menu_class to it, it&#8217;s because the menu you are fetching probably isn&#8217;t set in the Admin area under Appearance / Menus. If the menu is not set, then the &#8220;menu_class&#8221; is applied to a container element. If the menu is set, then the &#8220;menu_class&#8221; is applied [...]]]></description>
			<content:encoded><![CDATA[<p>If wp_nav_menu() is generating an extra
<div> and applying the menu_class to it, it&#8217;s because the menu you are fetching probably isn&#8217;t set in the Admin area under Appearance / Menus.<br />
If the menu is not set, then the &#8220;menu_class&#8221; is applied to a container
<div> element. If the menu is set, then the &#8220;menu_class&#8221; is applied to the
<ul> and no extra
<div> is created.</p>
<pre class="brush: php; title: ; notranslate">
&lt;div id=&quot;main-menu&quot;&gt;
	&lt;div class=&quot;navbar navbar-static-top&quot;&gt;
		&lt;div class=&quot;navbar-inner&quot;&gt;				
			&lt;?php
			$args = array(
				'theme_location' =&gt; 'menu_main',
				'depth'	=&gt; 0,
				'container'	=&gt; false,
				'menu_class' =&gt; 'nav'
			);
			wp_nav_menu($args);
			?&gt;									
		&lt;/div&gt;
	&lt;/div&gt;
&lt;/div&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://maranathaproductions.com/2013/01/wp_nav_menu-generates-an-extra-div/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IIS Web.config Redirect?</title>
		<link>http://maranathaproductions.com/2012/09/iis-web-config-redirect/</link>
		<comments>http://maranathaproductions.com/2012/09/iis-web-config-redirect/#comments</comments>
		<pubDate>Fri, 21 Sep 2012 19:42:29 +0000</pubDate>
		<dc:creator>mmp_stevetronix</dc:creator>
				<category><![CDATA[IIS]]></category>

		<guid isPermaLink="false">http://maranathaproductions.com/?p=134</guid>
		<description><![CDATA[To redirect a single page on a website to a new folder location (example: http://site.com/index.html to http://site.com/index/), open web.config in the directory where the old page is and add the following code: Feel free to add as many location tags as you need. To redirect an entire directory to a new location, add this line [...]]]></description>
			<content:encoded><![CDATA[<p>To redirect a single page on a website to a new folder location (example: http://site.com/index.html to http://site.com/index/), open web.config in the directory where the old page is and add the following code:</p>
<pre class="brush: php; title: ; notranslate">
&lt;configuration&gt;
&lt;location path=&quot;services.htm&quot;&gt;
&lt;system.webServer&gt;
&lt;httpRedirect enabled=&quot;true&quot; destination=&quot;http://domain.com/services&quot; httpResponseStatus=&quot;Permanent&quot; /&gt;
&lt;/system.webServer&gt;
&lt;/location&gt;
&lt;location path=&quot;products.htm&quot;&gt;
&lt;system.webServer&gt;
&lt;httpRedirect enabled=&quot;true&quot; destination=&quot;http://domain.com/products&quot; httpResponseStatus=&quot;Permanent&quot; /&gt;
&lt;/system.webServer&gt;
&lt;/location&gt;
&lt;/configuration&gt;
</pre>
<p>Feel free to add as many location tags as you need.</p>
<p>To redirect an entire directory to a new location, add this line of code within thesection:</p>
<pre class="brush: php; title: ; notranslate">&lt;httpRedirect enabled=&quot;true&quot; destination=&quot;http://domain.com/newdir&quot; httpResponseStatus=&quot;Permanent&quot; /&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://maranathaproductions.com/2012/09/iis-web-config-redirect/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to create new post thumbnail size in WordPress child themes?</title>
		<link>http://maranathaproductions.com/2012/08/how-to-create-new-post-thumbnail-size-in-wordpress-child-themes/</link>
		<comments>http://maranathaproductions.com/2012/08/how-to-create-new-post-thumbnail-size-in-wordpress-child-themes/#comments</comments>
		<pubDate>Wed, 01 Aug 2012 15:05:36 +0000</pubDate>
		<dc:creator>mmp_stevetronix</dc:creator>
				<category><![CDATA[Questions]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://maranathaproductions.com/?p=127</guid>
		<description><![CDATA[In your child theme&#8217;s functions.php, add the set_post_thumbnail_size() function inside a child theme setup function. However, you will need to adjust your child theme setup function to run at a later priority. A child theme is processed before the parent theme. If your parent theme has set_post_thumbnail_size(), then you cannot call the function with default [...]]]></description>
			<content:encoded><![CDATA[<p>In your child theme&#8217;s functions.php, add the set_post_thumbnail_size() function inside a child theme setup function. However, you will need to adjust your child theme setup function to run at a later priority. A child theme is processed before the parent theme. If your parent theme has set_post_thumbnail_size(), then you cannot call the function with default priority in your child theme. If so, the parent theme&#8217;s function will override the child theme&#8217;s set_post_thumbnail_size().</p>
<pre class="brush: php; title: ; notranslate">
add_action( 'after_setup_theme', 'child_theme_setup', 11 );
</pre>
<p>The third parameter is Priority, which means how important your function is. The default value is 10. Setting it to 5 would make the function run earlier and setting it to 11 would make the function run later. We want the function to run later &#8211; that is, after the parent theme function so it doesn&#8217;t get overwritten.</p>
<p>Here is the setup function for your child theme that calls set_post_thumbnail_size().</p>
<pre class="brush: php; title: ; notranslate">
if ( ! function_exists( 'child_theme_setup' ) ):
	function child_theme_setup() {

		if ( function_exists( 'add_theme_support' ) ) {
			add_theme_support( 'post-thumbnails' );
			set_post_thumbnail_size( 200, 200, true );
		}
	}
endif;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://maranathaproductions.com/2012/08/how-to-create-new-post-thumbnail-size-in-wordpress-child-themes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How do I connect to a database within WordPress?</title>
		<link>http://maranathaproductions.com/2012/07/how-do-i-connect-to-a-database-within-wordpress/</link>
		<comments>http://maranathaproductions.com/2012/07/how-do-i-connect-to-a-database-within-wordpress/#comments</comments>
		<pubDate>Wed, 04 Jul 2012 20:35:37 +0000</pubDate>
		<dc:creator>mmp_stevetronix</dc:creator>
				<category><![CDATA[Questions]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[database]]></category>

		<guid isPermaLink="false">http://maranathaproductions.com/?p=1</guid>
		<description><![CDATA[Are you getting a &#8220;Not a valid MySQL-Link resource in wp-db.php&#8221; error when trying to connect to another database within your WordPress template pages? If so, it&#8217;s because the mysql_connect() function needs the new_link parameter to be set to true. The new_link parameter makes mysql_connect() always open a new link. Since we are not closing [...]]]></description>
			<content:encoded><![CDATA[<p>Are you getting a &#8220;Not a valid MySQL-Link resource in wp-db.php&#8221; error when trying to connect to another database within your WordPress template pages? If so, it&#8217;s because the mysql_connect() function needs the new_link parameter to be set to true. The new_link parameter makes mysql_connect() always open a new link. Since we are not closing the main WordPress database connection, we need to tell MySQL to open a new link for this new connection.</p>
<p>Here is an example:</p>
<pre class="brush: php; title: ; notranslate">
DEFINE('DB_SERVER', &quot;db_server.domain.com&quot;);
DEFINE('DB_USER', &quot;username&quot;);
DEFINE('DB_PASS', &quot;password&quot;);
DEFINE('DB_DATABASE', &quot;database&quot;);

//the new_link parameter must be set to true
$connection = mysql_connect(DB_SERVER, DB_USER, DB_PASS, true);
</pre>
]]></content:encoded>
			<wfw:commentRss>http://maranathaproductions.com/2012/07/how-do-i-connect-to-a-database-within-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to get the title for the posts page in WordPress?</title>
		<link>http://maranathaproductions.com/2012/07/how-to-get-the-title-for-the-posts-page-in-wordpress/</link>
		<comments>http://maranathaproductions.com/2012/07/how-to-get-the-title-for-the-posts-page-in-wordpress/#comments</comments>
		<pubDate>Sun, 01 Jul 2012 14:19:14 +0000</pubDate>
		<dc:creator>mmp_stevetronix</dc:creator>
				<category><![CDATA[Questions]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://maranathaproductions.com/?p=110</guid>
		<description><![CDATA[What if you want your posts page to have a title other than &#8220;Blog&#8221; but you don&#8217;t want to have to insert the title by hand? Here&#8217;s how it&#8217;s done. We cannot use the_title() because it is made to be used inside the WordPress loop to display blog post titles. It does not work when [...]]]></description>
			<content:encoded><![CDATA[<p>What if you want your posts page to have a title other than &#8220;Blog&#8221; but you don&#8217;t want to have to insert the title by hand? Here&#8217;s how it&#8217;s done.</p>
<p>We cannot use the_title() because it is made to be used inside the WordPress loop to display blog post titles. It does not work when getting a page title outside of this loop. When using the_title() outside of the loop, we will end up getting the title of the first post on the page.</p>
<p><a href="http://codex.wordpress.org/Function_Reference/single_post_title">single_post_title()</a> allows us to display or returns the title of the post when on a single post page.</p>
<pre class="brush: php; title: ; notranslate">single_post_title( $prefix, $display );</pre>
<p>If $display is TRUE, the title is output. If $display is FALSE, the title is returned for use in PHP.</p>
<p>We can also use get_the_title(). This function tries to retrieve the ID for the page that we are currently on. However, it will not retrieve the ID for the posts page properly. Therefore, we will need to get the ID of the posts page from the database using get_option(&#8216;page_for_posts&#8217;, true).</p>
<pre class="brush: php; title: ; notranslate">$my_title = get_the_title( get_option('page_for_posts', true) );</pre>
<p>These are the two ways that can be used to retrieve the page title within the index.php file for the posts page.</p>
]]></content:encoded>
			<wfw:commentRss>http://maranathaproductions.com/2012/07/how-to-get-the-title-for-the-posts-page-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
