<?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>CMS &#8211; Arun&#8217;s blog</title>
	<atom:link href="https://arunns.net/category/cms/feed/" rel="self" type="application/rss+xml" />
	<link>https://arunns.net</link>
	<description>Arun&#039;s blog</description>
	<lastBuildDate>Tue, 08 Jan 2013 08:55:10 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.4.2</generator>
	<item>
		<title>Upgrade, Restore Drupal 7</title>
		<link>https://arunns.net/upgrade-restore-drupal-7/</link>
					<comments>https://arunns.net/upgrade-restore-drupal-7/#respond</comments>
		
		<dc:creator><![CDATA[Arun N.]]></dc:creator>
		<pubDate>Tue, 08 Jan 2013 08:55:10 +0000</pubDate>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[Drupal]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Shell script]]></category>
		<category><![CDATA[backup drupal 7]]></category>
		<category><![CDATA[Drupal 7]]></category>
		<category><![CDATA[restore drupal 7]]></category>
		<category><![CDATA[upgrade drupal 7]]></category>
		<guid isPermaLink="false">http://arunnsblog.com/?p=617</guid>

					<description><![CDATA[Shell script to upgrade and restore Drupal 7 website This script will take care of the necessary actions required for upgrading drupal to higher versions. USAGE Copy the script to your webserver. Edit the script and change the variables to match with your setup Give execute privilege to the owner of the script (chmod u+x [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><strong>Shell script to upgrade and restore Drupal 7 website</strong><br />
This script will take care of the necessary actions required for upgrading drupal to higher versions.</p>
<p><strong>USAGE</strong></p>
<ul>
<li>Copy the script to your webserver.</li>
<li>Edit the script and change the variables to match with your setup</li>
<li>Give execute privilege to the owner of the script (chmod u+x upgrade-restore-drupal7.sh)</li>
<li>Execute the script ./upgrade-restore-drupal7.sh</li>
</ul>
<p><strong>UPGRADE</strong></p>
<blockquote>
<pre><em>$ ./upgrade-restore-drupal7.sh 
 Please enter your choice:
 1. Update drupal
 2. Restore an old installation from backup
 3. Exit</em>
1
<em>Please enter the new drupal version (eg: 7.15) : 
</em>7.18
<em>Downloading drupal-7.18
Downloaded the the drupal version drupal-7.18
Current site backup is created: /home/foo/backups/08-01-2013-0938
Database backup created: /home/foo/backups/08-01-2013-0938.sql
Site is in maintanence mode now
Removed all drupal core files from destination
Copied the new version contents
Drupal updated to drupal-7.18
Site is active again, but please update your database, please visit http://&lt;yourwebsite&gt;/update.php to finalize the process
Removed the source files
</em></pre>
</blockquote>
<p><strong>RESTORE</strong></p>
<blockquote>
<pre><em>$ ./upgrade-restore-drupal7.sh 
 Please enter your choice:
 1. Update drupal
 2. Restore an old installation from backup
 3. Exit</em>
2
<em>List of available backups
08-01-2013-0753
08-01-2013-0758
08-01-2013-0804
08-01-2013-0841
08-01-2013-0849
08-01-2013-0858
08-01-2013-0900
08-01-2013-0904
08-01-2013-0905
08-01-2013-0938
Please enter the backup file name to restore: (eg: 08-01-2013-0753):</em> 
08-01-2013-0905
<em>Site is offline now
Removed production files
Restored the filesystem backup 
Restored the database
Site is restored
</em></pre>
</blockquote>
<p><script src="https://gist.github.com/4482287.js"></script></p>
<p><a href="https://github.com/arun-natarajan/upgrade-restore-drupal7"><b>View on github</b></a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://arunns.net/upgrade-restore-drupal-7/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Fix categories and tags in wordpress custom post_type</title>
		<link>https://arunns.net/fix-categories-and-tags-in-wordpress-custom-post_type/</link>
					<comments>https://arunns.net/fix-categories-and-tags-in-wordpress-custom-post_type/#respond</comments>
		
		<dc:creator><![CDATA[Arun N.]]></dc:creator>
		<pubDate>Tue, 13 Dec 2011 12:24:15 +0000</pubDate>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[category issue]]></category>
		<category><![CDATA[custom post_type wordpress]]></category>
		<guid isPermaLink="false">http://arunnsblog.com/?p=577</guid>

					<description><![CDATA[By default word press does not look in to custom post_types for categories and tags, even though the category names are visible you get a NOT FOUND page when you click on the category. A work around found for this issue is : Edit : functions.php add_filter('pre_get_posts', 'query_post_type'); function query_post_type($query) { if(is_category() &#124;&#124; is_tag()) { [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>By default word press does not look in to custom post_types for categories and tags, even though the category names are visible you get a NOT FOUND page when you click on the category.</p>
<p>A work around found for this issue is :</p>
<p>Edit : functions.php</p>
<p><code>add_filter('pre_get_posts', 'query_post_type');<br />
function query_post_type($query) {<br />
if(is_category() || is_tag()) {<br />
$post_type = get_query_var('post_type');<br />
if($post_type)<br />
$post_type = $post_type;<br />
else<br />
$post_type = array('post','custom_post_type_name','nav_menu_item'); // replace custom_post_type_name with your post_type, and keep nav_menu_item to display menu in category page.<br />
$query-&gt;set('post_type',$post_type);<br />
return $query;<br />
}<br />
}</code></p>
<p>Reference:<a href="http://wordpress.org/support/topic/custom-post-type-tagscategories-archive-page" target="_blank" rel="noopener"> http://wordpress.org/support/topic/custom-post-type-tagscategories-archive-page</a></p>
<p>Thanks to <a href="http://wordpress.org/support/profile/parandroid" target="_blank" rel="noopener">paranoid  </a>for guiding to the fix . <img src="https://s.w.org/images/core/emoji/14.0.0/72x72/1f609.png" alt="😉" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p>./arun</p>
<p>&nbsp;</p>
]]></content:encoded>
					
					<wfw:commentRss>https://arunns.net/fix-categories-and-tags-in-wordpress-custom-post_type/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
