<?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>Tech Blog &#187; wordpress</title>
	<atom:link href="http://ittrainingexpert.com/category/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://ittrainingexpert.com</link>
	<description>My Tech Journeys</description>
	<lastBuildDate>Wed, 29 Feb 2012 06:43:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>WordPress Error #1062 &#8211; Duplicate entry &#8217;1&#8242; for key &#8216;id&#8217;</title>
		<link>http://ittrainingexpert.com/2010/01/wordpress-error-1062-duplicate-entry-1-for-key-id/</link>
		<comments>http://ittrainingexpert.com/2010/01/wordpress-error-1062-duplicate-entry-1-for-key-id/#comments</comments>
		<pubDate>Fri, 15 Jan 2010 06:06:00 +0000</pubDate>
		<dc:creator>expert</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://ittrainingexpert.com/2010/01/wordpress-error-1062-duplicate-entry-1-for-key-id/</guid>
		<description><![CDATA[I came across this error when I was trying to import an sql file to transfer a wordpress based site. The story is that I bought a site and the seller gave me a dump of the mySQL database for the site. I had to import this to my hosting account. So I created a [...]]]></description>
			<content:encoded><![CDATA[<p>I came across this error when I was trying to import an sql file to transfer a wordpress based site. The story is that I bought a site and the seller gave me a dump of the mySQL database for the site. I had to import this to my hosting account. So I created a installation of WordPress on my hosting account using Fantastico and accessed the specific database for the new site. </p>
<p>&#160;</p>
<p>The process is a bit tricky because you do not want to mess your other databases in the hosting account because that can destroy your other sites ! </p>
<p>I thought it will be a simple matter to import the file but as always sql never works without giving errors.</p>
<p>During the import of sql (through phpmyadmin), I kept getting the following error,</p>
<p>&#160;</p>
<p>&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;</p>
<p>SQL query:</p>
<p>&#8211;</p>
<p>&#8211; Dumping data for table `wp_flickr_post`</p>
<p>&#8211;</p>
<p>INSERT INTO `wp_flickr_post` ( `uid` , `name` , `value` )</p>
<p>VALUES ( 1, &#8216;commercial_only&#8217;, &#8217;1&#8242; ) , ( 2, &#8216;legacy_support&#8217;, &#8217;1&#8242; ) ;</p>
<p>MySQL said:</p>
<p><strong>#1062 &#8211; Duplicate entry &#8217;1&#8242; for key &#8216;id&#8217;</strong></p>
<p>&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;</p>
<p>&#160;</p>
<p>OK so how did I fix this ?</p>
<p>Simple, </p>
<p><strong>Dropped all the tables inside the database so that I had an empty database and nothing else. </strong></p>
<p><strong>Then I tried to import the sql file and it went very smoothly without any problems. </strong></p>
<p>&#160;</p>
<p>So the lesson I learnt was that If I am importing an sql file, especially to setup a new site or to move a site, then I should always remove all the tables within the newly created database and then do a fresh import.</p>
<p>It really helps if you know at least the basic SQL commands because then you will be more confident to troubleshoot. After all the SQL dump of the site that you get in a .sql file is nothing but SQL statements.</p>
<p>As always if you have any question as always leave a message below.</p>
]]></content:encoded>
			<wfw:commentRss>http://ittrainingexpert.com/2010/01/wordpress-error-1062-duplicate-entry-1-for-key-id/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>301 redirect WordPress</title>
		<link>http://ittrainingexpert.com/2010/01/301-redirect-wordpress/</link>
		<comments>http://ittrainingexpert.com/2010/01/301-redirect-wordpress/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 05:49:00 +0000</pubDate>
		<dc:creator>expert</dc:creator>
				<category><![CDATA[SEO]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://ittrainingexpert.com/2010/01/301-redirect-wordpress/</guid>
		<description><![CDATA[Sometime WordPress can be very annoying and mess up all you SEO efforts. For example it can include a /tag/within your URL. So the URL you get is www.yoursite.com/tag/keyword What you actually wanted was www.yoursite.com/keyword &#160; Because this would be better for SEO purposes and the Search Engines like Google would prefer this format and [...]]]></description>
			<content:encoded><![CDATA[<p>Sometime WordPress can be very annoying and mess up all you SEO efforts. For example it can include a /tag/within your URL. So the URL you get is </p>
<p><a href="http://www.yoursite.com/tag/keyword">www.yoursite.com/tag/keyword</a></p>
<p>What you actually wanted was </p>
<p><a href="http://www.yoursite.com/keyword">www.yoursite.com/keyword</a></p>
<p>&#160;</p>
<p>Because this would be better for SEO purposes and the Search Engines like Google would prefer this format and rank you higher. </p>
<p>Another problem with this is that the same page is reachable through both urls above, so there is a chance that the search engines might get the wrong idea and think that you have duplicate content on your site ! This is simply not good for your site as far as search engine traffic is concerned.</p>
<p>&#160;</p>
<p>The solution to fix this problem is to use “<strong>Redirection</strong>” [<a href="http://urbangiraffe.com/plugins/redirection/">http://urbangiraffe.com/plugins/redirection/</a>] which is a WordPress plugin to manage 301 redirections. With a 301 redirect the search engine bots will be forwarded to the correct format of the URL so you can avoid any duplicate content issues as well.</p>
<p>&#160;</p>
<p>OK so this is how I fixed it ….</p>
<p>&#160;</p>
<p>Redirect Tag pages   <br />==================    <br />/tag/(.*) =&gt; /$1 </p>
<p>This will match any URL that starts with /tag/, and will redirect it to the same URL but without /tag/. For example, </p>
<p> <a title="http://onlinembadegreeprogram.co.uk/tag/university-of-maryland-university-college-umuc-business-administration-mba-degree/&#13;&#10;" href="http://onlinembadegreeprogram.co.uk/tag/university-of-maryland-university-college-umuc-business-administration-mba-degree/">http://onlinembadegreeprogram.co.uk/tag/university-of-maryland-university-college-umuc-business-administration-mba-degree/   <br /></a>
<p>&#160;</p>
<p>will be redirected to a URL without the /tag/</p>
<p><a title="http://onlinembadegreeprogram.co.uk/tag/university-of-maryland-university-college-umuc-business-administration-mba-degree/&#13;&#10;" href="http://onlinembadegreeprogram.co.uk/university-of-maryland-university-college-umuc-business-administration-mba-degree/">http://onlinembadegreeprogram.co.uk/university-of-maryland-university-college-umuc-business-administration-mba-degree/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ittrainingexpert.com/2010/01/301-redirect-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to: Remove /category/ from your WordPress url</title>
		<link>http://ittrainingexpert.com/2010/01/how-to-remove-category-from-your-wordpress-url/</link>
		<comments>http://ittrainingexpert.com/2010/01/how-to-remove-category-from-your-wordpress-url/#comments</comments>
		<pubDate>Wed, 13 Jan 2010 05:35:00 +0000</pubDate>
		<dc:creator>expert</dc:creator>
				<category><![CDATA[SEO]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://ittrainingexpert.com/2010/01/how-to-remove-category-from-your-wordpress-url/</guid>
		<description><![CDATA[OK, this is a very annoying issue when you are using wordpress. For SEO purposes you select your perma links to be of a certain format. But once you select the url format it does not use what you selected and keep inserting the actual “Category” name with in the URL.&#160; This is very annoying [...]]]></description>
			<content:encoded><![CDATA[<p>OK, this is a very annoying issue when you are using wordpress. For SEO purposes you select your perma links to be of a certain format. But once you select the url format it does not use what you selected and keep inserting the actual “Category” name with in the URL.&#160; This is very annoying when you are trying to get rid of this category string from the URL.</p>
<p>&#160;</p>
<p>I’ve tried various things including modifying the php files within wordpress but still without any luck until I tried this….</p>
<p>So if you wanted to get rid of this category keyword here is what to do…</p>
<p>&#160;</p>
<p>In the Permalinks options, set the &quot;Custom Structure&quot; to </p>
<p><font color="#ff0000">/%category%/%postname%/</font> </p>
<p>and your &quot;Category Base&quot; to </p>
<p><font color="#ff0000">/. </font></p>
<p><font color="#ff0000"><font color="#ff0000"></font></font></p>
<p><font color="#ff0000"></font></p>
<p><font size="3">By the way if you still have not improved your URL structure for WordPress then I would do it immediately because it is very important for the SEO for your site. For example it is always a good idea to include the keywords that you are targeting within the URL.&#160; Things like the domain name and URL count heavily with search engines when they rank your site for specific keywords.</font></p>
<p><font size="3">Please let me know whether this worked for you, and if you have any suggestions or questions by leaving a comment below.</font></p>
<p><font color="#ff0000"><font color="#ff0000"></font></font></p>
<p><font color="#ff0000">&#160;</font></p>
]]></content:encoded>
			<wfw:commentRss>http://ittrainingexpert.com/2010/01/how-to-remove-category-from-your-wordpress-url/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Increase the Number of Recent Posts in WordPress</title>
		<link>http://ittrainingexpert.com/2010/01/how-to-increase-the-number-of-recent-posts-in-wordpress/</link>
		<comments>http://ittrainingexpert.com/2010/01/how-to-increase-the-number-of-recent-posts-in-wordpress/#comments</comments>
		<pubDate>Sat, 09 Jan 2010 04:54:50 +0000</pubDate>
		<dc:creator>expert</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[How to Increase the Number of Recent Posts in Wordpress]]></category>

		<guid isPermaLink="false">http://ittrainingexpert.com/?p=88</guid>
		<description><![CDATA[Many of us struggle with the limitation of the number of recent posts in wordpress. The maximum with the latest is 15 most recent posts. I like to increase this to about 100 because this improves the site structure and gets the search engine bots from the homepage to the internal pages through the most [...]]]></description>
			<content:encoded><![CDATA[<p>Many of us struggle with the limitation of the number of recent posts in wordpress. The maximum with the latest is 15 most recent posts.<br />
I like to increase this to about 100 because this improves the site structure and gets the search engine bots from the homepage to the internal pages through the most recent post links on the front page.</p>
<p>So lets try to increase the limit to 100 recent posts&#8230;.<br />
You got to be careful about the maximum number here because of 2 reasons</p>
<p>1. It delay the site load time because the site has to load all the links, and<br />
2. SEO says more than 100 links on the home page is a bad idea !</p>
<p>It&#8217;s a bit of a pain to do this because you need to modify the default-widgets.php located in wp-includes </p>
<p>Before you play with the file make sure to <strong>BACKUP</strong><br />
<strong>I am not responsible if anything goes wrong !</strong></p>
<p><strong>Find the code below</strong> </p>
<p>$title = apply_filters(&#8216;widget_title&#8217;, empty($instance['title']) ? __(&#8216;Recent Posts&#8217;) : $instance['title']);<br />
		if ( !$number = (int) $instance['number'] )<br />
			$number = 10;<br />
		else if ( $number &lt; 1 )<br />
			$number = 1;<br />
		else if ( $number &gt; 15 )<br />
			$number = 15;</p>
<p><strong>and modify to</strong></p>
<p>$title = apply_filters(&#8216;widget_title&#8217;, empty($instance['title']) ? __(&#8216;Recent Posts&#8217;) : $instance['title']);<br />
		if ( !$number = (int) $instance['number'] )<br />
			$number = 10;<br />
		else if ( $number &lt; 1 )<br />
			$number = 1;<br />
		else if ( $number &gt; 100 )<br />
			$number = 100;</p>
<p>if you have setup widgets for the sidebars then modify the maximum number of recent posts to display to 100.<br />
Before the hack you could put any number, even 100, but it simply ignored it and displayed the 15 recent posts because the code we modified is actually what controls this maximum number </p>
<p><strong>else if ( $number &gt; 100 ) $number = 100;</strong></p>
<p>Hope this is useful, feel free to leave comments below&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://ittrainingexpert.com/2010/01/how-to-increase-the-number-of-recent-posts-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fatal error: Call to undefined function is_site_admin() in  sem-google-analytics-admin.php on line 20</title>
		<link>http://ittrainingexpert.com/2010/01/fatal-error-call-to-undefined-function-is_site_admin-in-sem-google-analytics-admin-php-on-line-20/</link>
		<comments>http://ittrainingexpert.com/2010/01/fatal-error-call-to-undefined-function-is_site_admin-in-sem-google-analytics-admin-php-on-line-20/#comments</comments>
		<pubDate>Fri, 08 Jan 2010 05:59:55 +0000</pubDate>
		<dc:creator>expert</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[Fatal error: Call to undefined function is_site_admin() in  sem-google-analytics-admin.php on line 20]]></category>

		<guid isPermaLink="false">http://ittrainingexpert.com/?p=65</guid>
		<description><![CDATA[When I upgraded to wordpress 2.8, I was unable to login to http://ittrainingexpert.com/wp-admin/plugins.php to access the admin panel .. The error I got was Fatal error: Call to undefined function is_site_admin() in /home/techmonkey/public_html/ittrainingexpertblog/wp-content/plugins/sem-google-analytics/sem-google-analytics-admin.php on line 20 So what did I do&#8230; Googled the error message (excluding the names specific to me in the path) Google [...]]]></description>
			<content:encoded><![CDATA[<p>When I upgraded to wordpress 2.8, I was unable to login to http://ittrainingexpert.com/wp-admin/plugins.php to access the admin panel ..</p>
<p>The error I got was </p>
<p>Fatal error: Call to undefined function is_site_admin() in /home/techmonkey/public_html/ittrainingexpertblog/wp-content/plugins/sem-google-analytics/sem-google-analytics-admin.php on line 20</p>
<p>So what did I do&#8230;<br />
Googled the error message (excluding the names specific to me in the path)<br />
Google search<br />
Fatal error: Call to undefined function is_site_admin() in /wp-content/plugins/sem-google-analytics/sem-google-analytics-admin.php on line 20</p>
<p>This<br />
<a href="http://menoob.com/wordpress/google-analytics-plugin-problem-in-wordpress-2-8/">http://menoob.com/wordpress/google-analytics-plugin-problem-in-wordpress-2-8/</a></p>
<p>was the best answer and I managed to get back into the admin panel after I renamed the directory for the google analytics plugin in<br />
 /home/techmonkey/public_html/ittrainingexpertblog/wp-content/</p>
]]></content:encoded>
			<wfw:commentRss>http://ittrainingexpert.com/2010/01/fatal-error-call-to-undefined-function-is_site_admin-in-sem-google-analytics-admin-php-on-line-20/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is the best desktop client for WordPress</title>
		<link>http://ittrainingexpert.com/2010/01/what-is-the-best-desktop-client-for-wordpress/</link>
		<comments>http://ittrainingexpert.com/2010/01/what-is-the-best-desktop-client-for-wordpress/#comments</comments>
		<pubDate>Fri, 08 Jan 2010 05:22:57 +0000</pubDate>
		<dc:creator>expert</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[website]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[Wordpress desktop client]]></category>

		<guid isPermaLink="false">http://ittrainingexpert.com/?p=62</guid>
		<description><![CDATA[Finally having used WordPress for more than 2 years I am on the search for a desktop client for WordPress, I want to manage the blogs using a user friendly interface. Ok just now I think it&#8217;s extremely important to have access to your wordpress blog using a desktop client, why ? I upgraded my [...]]]></description>
			<content:encoded><![CDATA[<p>Finally having used WordPress for more than 2 years I am on the search for a desktop client for WordPress, I want to manage the blogs using a user friendly interface.    <br />Ok just now I think it&#8217;s extremely important to have access to your wordpress blog using a desktop client, why ? I upgraded my wordpress to the latest on this blog and there was a problem with the google analytics plugin I had running, this prevented me from logging in to the admin panel ! if anyone comes across this problem here is what to do <a href="http://ittrainingexpert.com/2010/01/fatal-error-call-to-undefined-function-is_site_admin-in-sem-google-analytics-admin-php-on-line-20/">/fatal-error-call-to-undefined-function-is_site_admin-in-sem-google-analytics-admin-php-on-line-20/</a></p>
<p>So far I have tried 3 on the Mac </p>
<p>1. <strong>Blogo</strong>, I quite like the bunny icon, but functionality is rather buggy, it leaves a great big space before the first sentence, and this has been a well known problem for years !. Another problem is that this costs $$ !</p>
<p>so moving on to    </p>
<p>2. <strong>MarsEdit</strong>, I am writing this post using MarsEdit, however one of my major problems with this is that when I copy and paste from MS word or Google docs, the markups like bolding etc are not retained. SO this is not a WYSIWYG editor !. Disappointed, that I have to do bolding etc manually. On the positive side this is great if you want to review and modify your existing blogs. Cost $$$     <br />More problems with MarsEdit, when inserting images !, really wish this was WYSIWYG !. <font color="#ff0000">Now I am using Windows Live Writer !</font></p>
<p>&#160;</p>
<p>3. <strong>Macjournal</strong>, again another disappointment, i this is not a WYSIWYG editor !. The interface looks better that the other 2 but again the same problems.</p>
<p>I might look for more clients and even might try the windows based ones, especially the free one from Microsoft. Will keep you updated might be useful for someone who is looking to make wordpress maintenance easier.</p>
<p>&#160;</p>
<blockquote><p>&#160;<a href="http://ittrainingexpert.com/wp-content/uploads/2010/01/Wordpressclient2.jpg"><img title="Wordpress client" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="124" alt="Wordpress client" src="http://ittrainingexpert.com/wp-content/uploads/2010/01/Wordpressclient_thumb1.jpg" width="124" border="0" /></a></p>
</blockquote>
<p>&#160;</p>
<p>This might be a good problem to solve, because there is a requirement or a gap in the market for a wordpress desktop client with the following <strong>list of requirements</strong></p>
<p>1. WYSIWYG editor    <br />2. Free or cheap     <br />3. Drag and drop for images, videos etc     <br />4. Ability to manipulate and edit comments     <br />5. Ability to manipulate input for various popular plugins as All in One SEO     <br />6. Accurate preview view for drafts and published posts     <br />7. Preview with Theme (like in WLW)</p>
<p>Development will need a good knowledge of XML RPC know how etc. The XML RPC is a well documented protocol !</p>
<p>&#160;</p>
<p>Until I find a wordpress client of my dreams, I will continue to use <strike>MarsEdit</strike> Windows Live Writer on my <strike>Mac</strike> Windows Laptop <img src='http://ittrainingexpert.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> &#160; <br />&#160;</p>
<p>OK, now I read another article which said that Windows Live Writer (WLW) is the best. So I am on my Windows laptop writing this. </p>
<p>&#160;</p>
<p>So testing Window WordPress clients as well</p>
<ol>
<li><strong>Windows Live Writer 2009</strong>, WLW looks very impressive so far. It’s free and offers a nice preview with your blog template !. That’s great ! . </li>
</ol>
<blockquote><p><strong><em>What I like :</em></strong></p>
<ol>
<li>The preview facility with your WP theme </li>
<li>When it publishes the the post it will automatically open it in your selected web browser. I am impressed that it does not force you down the Internet Explorer router because I use Firefox <img src='http://ittrainingexpert.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  </li>
<li>Smiley (:)) support </li>
</ol>
<p><strong><em>Problems with solutions:</em></strong></p>
<ul>
<li><strong>.png images</strong> –&gt; WLW crashes when dragging and dropping or inserting .png images !, the current solution I found is to convert pngs to .jpg and drag and drop or insert. Works fine <img src='http://ittrainingexpert.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  </li>
</ul>
<p>&#160;</p>
<ul>
<li>If you are using a very <strong>narrow column theme</strong> on your WP blog, then the edit area on WLW will be very small to match the size of the post on your front page ! so what you need to do to get this sorted is to
<p>Untick </p>
<p>View –&gt; Edit Using Theme </p>
<p>CTRL + F11 will toggle between Edit using theme and Edit without</p>
</li>
</ul>
<p>&#160;</p>
</blockquote>
<p>&#160;</p>
<p>If you have any suggestions or would like to add to these experiences then please let me know by leaving a comment below.</p>
]]></content:encoded>
			<wfw:commentRss>http://ittrainingexpert.com/2010/01/what-is-the-best-desktop-client-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

