<?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>Some PHP &#124; Wordpress Tips &#187; Wordpress Customization</title>
	<atom:link href="http://worth2read.org/blog/category/wordpress-customization/feed/" rel="self" type="application/rss+xml" />
	<link>http://worth2read.org/blog</link>
	<description>Wordpress &#124; PHP Tips</description>
	<lastBuildDate>Tue, 20 Jul 2010 14:31:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Unable to update some wordpress users</title>
		<link>http://worth2read.org/blog/2010/06/20/unable-to-update-some-wordpress-users/</link>
		<comments>http://worth2read.org/blog/2010/06/20/unable-to-update-some-wordpress-users/#comments</comments>
		<pubDate>Mon, 21 Jun 2010 02:06:08 +0000</pubDate>
		<dc:creator>Gisha James</dc:creator>
				<category><![CDATA[Wordpress Customization]]></category>

		<guid isPermaLink="false">http://worth2read.org/blog/?p=192</guid>
		<description><![CDATA[One of my clients had this issue &#8211; unable to update some of the wordpress users. When trying to update some of the user, he was getting this error Catchable fatal error: Object of class __PHP_Incomplete_Class could not be converted to string in C:\web\wp28\wp\wp-includes\functions.php on line 1463 I went through many fixes, suggested in different <a href='http://worth2read.org/blog/2010/06/20/unable-to-update-some-wordpress-users/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fworth2read.org%2Fblog%2F2010%2F06%2F20%2Funable-to-update-some-wordpress-users%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fworth2read.org%2Fblog%2F2010%2F06%2F20%2Funable-to-update-some-wordpress-users%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>One of my clients had this issue &#8211; unable to update some of the wordpress users. When trying to update some of the user, he was getting this error<br />
Catchable fatal error: Object of class __PHP_Incomplete_Class could not be converted to string in C:\web\wp28\wp\wp-includes\functions.php  on line 1463</p>
<p>I went through many fixes, suggested in different threads, to edit the wordpress core file wp-includes\functions.php. None of them worked.</p>
<p>Since it only affects certain users I figured out that, the error may be because of the details of that particular user. I checked the database. I have seen some user meta keys related to a plugin which is uninstalled improperly. I deleted those meta keys and the error has gone away&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://worth2read.org/blog/2010/06/20/unable-to-update-some-wordpress-users/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Is this a bug in Thesis theme?</title>
		<link>http://worth2read.org/blog/2010/04/22/is-this-a-bug-in-thesis-theme/</link>
		<comments>http://worth2read.org/blog/2010/04/22/is-this-a-bug-in-thesis-theme/#comments</comments>
		<pubDate>Thu, 22 Apr 2010 07:20:36 +0000</pubDate>
		<dc:creator>Gisha James</dc:creator>
				<category><![CDATA[Wordpress Customization]]></category>

		<guid isPermaLink="false">http://worth2read.org/blog/?p=153</guid>
		<description><![CDATA[In thesis theme, when we use teasers, we have the link &#8220;Read Full article&#8221;. But they have the nofollow tag. Is this a bug in the theme?  nofollow means Google and other search engines won&#8217;t follow the link. The home page won&#8217;t losss the page rank, but will the posts be indexed by Google? The <a href='http://worth2read.org/blog/2010/04/22/is-this-a-bug-in-thesis-theme/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fworth2read.org%2Fblog%2F2010%2F04%2F22%2Fis-this-a-bug-in-thesis-theme%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fworth2read.org%2Fblog%2F2010%2F04%2F22%2Fis-this-a-bug-in-thesis-theme%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>In thesis theme, when we use teasers, we have the link &#8220;Read Full article&#8221;.</p>
<p>But they have the nofollow tag.</p>
<p>Is this a bug in the theme?  nofollow means Google and other search engines won&#8217;t follow the link.</p>
<p>The home page won&#8217;t losss the page rank, but will the posts be indexed by Google?</p>
<p>The same issue is there with comments also. They also have nofollow tags.</p>
<p>We can remove them by editing the files, but I was just wondering why Thesis is forcing this nofollow tag to teasers and comments&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://worth2read.org/blog/2010/04/22/is-this-a-bug-in-thesis-theme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Compare title and category name in wordpress</title>
		<link>http://worth2read.org/blog/2009/09/24/compare-title-and-category-name-in-wordpress/</link>
		<comments>http://worth2read.org/blog/2009/09/24/compare-title-and-category-name-in-wordpress/#comments</comments>
		<pubDate>Thu, 24 Sep 2009 15:05:37 +0000</pubDate>
		<dc:creator>Gisha James</dc:creator>
				<category><![CDATA[Wordpress Customization]]></category>

		<guid isPermaLink="false">http://worth2read.org/blog/?p=120</guid>
		<description><![CDATA[I had come through a situation to compare the category name and post title for a wordpress post. The following functions and code helped me to do this. $category = get_the_category(); $cat = $category[0]->cat_name; $post_no = get_post($post); $title = $post_no->post_title; $match=strcmp($cat,$title); if($match==0){ echo &#8220;match&#8221;; } else { echo &#8220;no match&#8221;; } The problem here is <a href='http://worth2read.org/blog/2009/09/24/compare-title-and-category-name-in-wordpress/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fworth2read.org%2Fblog%2F2009%2F09%2F24%2Fcompare-title-and-category-name-in-wordpress%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fworth2read.org%2Fblog%2F2009%2F09%2F24%2Fcompare-title-and-category-name-in-wordpress%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>I had come through a situation to compare the category name and post title for a wordpress post. The following functions and code helped me to do this.</p>
<p>$category = get_the_category();<br />
$cat = $category[0]->cat_name;<br />
$post_no = get_post($post);<br />
$title = $post_no->post_title;<br />
$match=strcmp($cat,$title);<br />
if($match==0){<br />
echo &#8220;match&#8221;;<br />
}<br />
else<br />
{<br />
echo &#8220;no match&#8221;;<br />
}</p>
<p>The problem here is $cat = $category[0]->cat_name; returns the first category name, so we are comparing only the first category with the title. If we want to compare the second category we have to use $cat = $category[1]->cat_name;</p>
<p>I hope someone will write a better solution so that we can compare the array, category with title. I would appreciate if someone can post that&#8230;</p>
<p>in_array came to my mind, but it is case sensitive&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://worth2read.org/blog/2009/09/24/compare-title-and-category-name-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Blank page for wp-admin</title>
		<link>http://worth2read.org/blog/2009/08/24/blank-page-for-wp-admin/</link>
		<comments>http://worth2read.org/blog/2009/08/24/blank-page-for-wp-admin/#comments</comments>
		<pubDate>Mon, 24 Aug 2009 06:01:38 +0000</pubDate>
		<dc:creator>Gisha James</dc:creator>
				<category><![CDATA[Wordpress Customization]]></category>
		<category><![CDATA[admin page blank]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[wp-admin is blank]]></category>

		<guid isPermaLink="false">http://worth2read.org/blog/?p=107</guid>
		<description><![CDATA[Just now, I had been in a horrible situation that I can see all my blog pages but when I go to http://worth2read.org/blog/wp-admin/ it appears as blank. That is I am completly locked out of the admin area. I made a Google search for the solution and confused with lots of solutions that appeared. However <a href='http://worth2read.org/blog/2009/08/24/blank-page-for-wp-admin/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fworth2read.org%2Fblog%2F2009%2F08%2F24%2Fblank-page-for-wp-admin%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fworth2read.org%2Fblog%2F2009%2F08%2F24%2Fblank-page-for-wp-admin%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>Just now, I had been in a horrible situation that I can see all my blog pages but when I go to http://worth2read.org/blog/wp-admin/ it appears as blank. That is I am completly locked out of the admin area.</p>
<p>I made a Google search for the solution and confused with lots of solutions that appeared.</p>
<p>However atlast I manged to get my admin page back, the solution that worked for me is as follows&#8230;</p>
<p>I checked the functions.php in my theme folder. There were some spaces at the top and bottom of the page. i deleted it. </p>
<p>I got my admin page back so that I can post this for you now.</p>
<p>I am posting it here thinking if anyone else came through such situation, it will be helpful for them.</p>
]]></content:encoded>
			<wfw:commentRss>http://worth2read.org/blog/2009/08/24/blank-page-for-wp-admin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding new widgets in wordpress themes</title>
		<link>http://worth2read.org/blog/2009/08/15/adding-new-widgets-in-wordpress-themes/</link>
		<comments>http://worth2read.org/blog/2009/08/15/adding-new-widgets-in-wordpress-themes/#comments</comments>
		<pubDate>Sat, 15 Aug 2009 13:26:48 +0000</pubDate>
		<dc:creator>Gisha James</dc:creator>
				<category><![CDATA[Wordpress Customization]]></category>
		<category><![CDATA[Adding new widgets in wordpress themes]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://worth2read.org/blog/?p=100</guid>
		<description><![CDATA[We can add new widgets by using functions.php in the theme folder. For example I can add &#8220;Services I offer and Google Adsense in 2 ways to the sidebars. 1. Code both to the page sidebar.php 3. Create widgets using functions.php file in the theme folder Following code shows how I added a simple Adsense <a href='http://worth2read.org/blog/2009/08/15/adding-new-widgets-in-wordpress-themes/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fworth2read.org%2Fblog%2F2009%2F08%2F15%2Fadding-new-widgets-in-wordpress-themes%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fworth2read.org%2Fblog%2F2009%2F08%2F15%2Fadding-new-widgets-in-wordpress-themes%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>We can add new widgets by using functions.php in the theme folder.</p>
<p>For example I can add &#8220;Services I offer and Google Adsense in 2 ways<br />
to the sidebars.</p>
<p>1. Code both to the page sidebar.php<br />
3. Create widgets using functions.php file in the theme folder</p>
<p>Following code shows how I added a simple Adsense widget using functions.php</p>
<p>if (function_exists(&#8216;register_sidebar&#8217;))<br />
{<br />
register_sidebar_widget(__(&#8216;Adsense&#8217;), &#8216;google_widget&#8217;);<br />
}</p>
<p>function google_widget() {<br />
echo $before_widget;<br />
echo $before_title;</p>
<p>echo&#8221;&lt;li&gt;&lt;h2&gt;Sponsors&lt;/h2&gt;&lt;/li&gt;&#8221;;<br />
echo $after_title; <br />
?&gt;<br />
 &lt;ul&gt;<br />
 &lt;li&gt;</p>
<p>Here comes Adsense code</p>
<p>&lt;/li&gt;<br />
 &lt;/ul&gt;<br />
 &lt;?php echo $after_widget; <br />
}</p>
<p>function init_adsense(){<br />
    register_adsense_widget(&#8220;Sponsors&#8221;, &#8220;google_widget&#8221;);    <br />
}</p>
<p>add_action(&#8220;plugins_loaded&#8221;, &#8220;init_adsense&#8221;);</p>
<p>The above code gives a simple widget named adsense in the widget panel. From the widget list I can add it to the sidebar without disturbing sidebar.php file.</p>
<p><strong>Update:</strong></p>
<p>Just now, I  noticed another method,  if the widget contains text or HTML only. In such cases you can use text widgets. Add the already existing &#8220;Text widget&#8221;.</p>
<p>In the example above give the title as &#8220;Sponsors&#8221; and write adsense code in the box. It is the easiest way if the widget you are making contains only text or HTML.</p>
]]></content:encoded>
			<wfw:commentRss>http://worth2read.org/blog/2009/08/15/adding-new-widgets-in-wordpress-themes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding Separate boxes for wordpress excerpts</title>
		<link>http://worth2read.org/blog/2009/08/08/adding-separate-boxes-for-wordpress-excerpts/</link>
		<comments>http://worth2read.org/blog/2009/08/08/adding-separate-boxes-for-wordpress-excerpts/#comments</comments>
		<pubDate>Sat, 08 Aug 2009 06:05:28 +0000</pubDate>
		<dc:creator>Gisha James</dc:creator>
				<category><![CDATA[Wordpress Customization]]></category>

		<guid isPermaLink="false">http://worth2read.org/blog/?p=82</guid>
		<description><![CDATA[In most of the themes the post container lists all the excerpts of the most recent posts in the home page. The following code will help you to break up each post into separate boxes. Example: Theme Home page Preview Using css we can make a 10px gap in-between each post, where the background of <a href='http://worth2read.org/blog/2009/08/08/adding-separate-boxes-for-wordpress-excerpts/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fworth2read.org%2Fblog%2F2009%2F08%2F08%2Fadding-separate-boxes-for-wordpress-excerpts%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fworth2read.org%2Fblog%2F2009%2F08%2F08%2Fadding-separate-boxes-for-wordpress-excerpts%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>In most of the themes the post container lists all the excerpts of the most recent posts in the home page. The following code will help you to break up each post into separate boxes.</p>
<p>Example: <a href="http://worth2read.org/blog/?preview_theme=yellow_blue">Theme Home page Preview</a></p>
<p>Using css we can make a 10px gap in-between each post, where the background of the page shows through.</p>
<p>In the page index.php we have</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>&lt;div id=&#8221;content&#8221;&gt;</p>
<p>&lt;?php while (have_posts()) : the_post(); ?&gt;</p>
<p>   &lt;div class=&#8221;post&#8221; id=&#8221;post-&lt;?php the_ID(); ?&gt;&#8221;&gt;</p>
<p> &lt;div class=&#8221;title-bg&#8221;&gt;   &lt;h2 class=&#8221;title&#8221;&gt;</p>
<p>&lt;a href=&#8221;&lt;?php the_permalink() ?&gt;&#8221; rel=&#8221;bookmark&#8221; title=&#8221;Permanent Link to &lt;?php the_title(); ?&gt;&#8221;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;</p>
<p>&lt;/h2&gt;&lt;/div&gt;<br />
 &lt;div class=&#8221;entry&#8221;&gt;</p>
<p>     &lt;?php the_excerpt(); ?&gt;</p>
<p>     &lt;p class=&#8221;links&#8221;&gt;</p>
<p>&lt;a href=&#8221;&lt;?php the_permalink() ?&gt;&#8221; class=&#8221;more&#8221;&gt;&amp;laquo;&amp;laquo;&amp;nbsp;&amp;nbsp;Read More&lt;/a&gt;&lt;/p&gt;</p>
<p>    &lt;/div&gt;   &lt;/div&gt;</p>
<p>  &lt;?php endwhile; ?&gt;</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>I was just copying the index page. Ignore the div tags you don&#8217;t want , but the following css code for content and post will help to add a separation between each post.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>#content {</p>
<p>float: left;</p>
<p>width: 600px;</p>
<p>border-left: 1px #BBBBBB dashed;</p>
<p>margin-left:10px;</p>
<p>}</p>
<p>.post {</p>
<p>padding-bottom: 15px;</p>
<p>line-height: 200%;</p>
<p>background-color:#FFFFCC;</p>
<p>margin-top:10px;</p>
<p>}</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>Here &#8220;background-color:#FFFFCC;&#8221; gives an yellow background and &#8220;margin-top:10px;&#8221; gives a gap with the background color mentioned in #content background color.</p>
<p>In this example it is white.</p>
]]></content:encoded>
			<wfw:commentRss>http://worth2read.org/blog/2009/08/08/adding-separate-boxes-for-wordpress-excerpts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Putting WordPress Blog posts in another page of the site&#8230;</title>
		<link>http://worth2read.org/blog/2009/07/25/putting-wordpress-blog-posts-in-another-page-of-the-site/</link>
		<comments>http://worth2read.org/blog/2009/07/25/putting-wordpress-blog-posts-in-another-page-of-the-site/#comments</comments>
		<pubDate>Sat, 25 Jul 2009 14:13:23 +0000</pubDate>
		<dc:creator>Gisha James</dc:creator>
				<category><![CDATA[Wordpress Customization]]></category>

		<guid isPermaLink="false">http://worth2read.org/blog/?p=58</guid>
		<description><![CDATA[Well, I have to go through a situation as follows&#8230; The blog is installed in the subdirectory of a website, like I have done for this site.. But in the sidebar of the index page in the main site, the excerpts of blog posts need to appear&#8230; The following code helped me to do it&#8230;]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fworth2read.org%2Fblog%2F2009%2F07%2F25%2Fputting-wordpress-blog-posts-in-another-page-of-the-site%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fworth2read.org%2Fblog%2F2009%2F07%2F25%2Fputting-wordpress-blog-posts-in-another-page-of-the-site%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>Well, I have to go through a situation as follows&#8230;</p>
<p>The blog is installed in the subdirectory of a website, like I have done for this site..</p>
<p>But in the sidebar of the index page in the main site, the excerpts of blog posts need to appear&#8230;</p>
<p>The following code helped me to do it&#8230; </p>
<p><?php<br />
// Include WordPress<br />
define('WP_USE_THEMES', false);<br />
require('./wordpress/wp-blog-header.php');</p>
<p>query_posts('showposts=2');  //Write the number of posts you want to display</p>
<p>while (have_posts()): the_post(); ?></p>
<h1><?php the_title(); ?></h1>
<p><?php the_excerpt(); ?></p>
<p><a href="<?php the_permalink(); ?>&#8220;>Read more&#8230;</a></p>
<p><?php endwhile; ?></p>
]]></content:encoded>
			<wfw:commentRss>http://worth2read.org/blog/2009/07/25/putting-wordpress-blog-posts-in-another-page-of-the-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Import From B2evolution(2.4.6) to WordPress (2.7)</title>
		<link>http://worth2read.org/blog/2009/01/31/import-from-b2evolution246-to-wordpress-27/</link>
		<comments>http://worth2read.org/blog/2009/01/31/import-from-b2evolution246-to-wordpress-27/#comments</comments>
		<pubDate>Sat, 31 Jan 2009 14:32:08 +0000</pubDate>
		<dc:creator>Gisha James</dc:creator>
				<category><![CDATA[Scripts for sale]]></category>
		<category><![CDATA[Wordpress Customization]]></category>
		<category><![CDATA[B2evolution(2.4.6)]]></category>
		<category><![CDATA[B2evolution(2.4.6) to Wordpress (2.7)]]></category>
		<category><![CDATA[import tool]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://worth2read.org/blog/?p=35</guid>
		<description><![CDATA[The outdated version of migrate.php is already available. I had just updated it so that we can use it for the latest version. Only some field names, table names etc are changed. Step 1: Upload the wordpress files to the b2evolution directory (This is to keep permanent link as same) Step2: Install wordpress, Use the <a href='http://worth2read.org/blog/2009/01/31/import-from-b2evolution246-to-wordpress-27/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fworth2read.org%2Fblog%2F2009%2F01%2F31%2Fimport-from-b2evolution246-to-wordpress-27%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fworth2read.org%2Fblog%2F2009%2F01%2F31%2Fimport-from-b2evolution246-to-wordpress-27%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>The outdated version of migrate.php is already available. I had just updated it so that we can use it for the latest version. Only some field names, table names etc are changed.</p>
<p>Step 1: Upload the wordpress files to the b2evolution directory (This is to keep permanent link as same)</p>
<p>Step2: Install wordpress, Use the same database as that of b2evolution.</p>
<p>Step3: Upload the script migrate.php to the folder wp-admin . Run migrate.php</p>
<p><strong>Help with Permanent Link</strong></p>
<p>The table wp_options contains a field, &#8220;permalink_structure&#8221; edit it and keep it in the way you want.</p>
<p><strong>Some notes about the script : migrate.php</strong></p>
<p>================================================<br />
Step1 :  You have to connect to the database.</p>
<p>Step2:  Remove the present contents of wordpress tables. It is better not to delete details of user. Otherwise wordpress admin may not be able to access the admin area after running the script.</p>
<p>Step3:  Import users and user meta data.</p>
<p>The table evo_users contains users of your present blog. Select it from evo_users and insert it into wp_users.</p>
<p><strong>Step4:  </strong>Import categories.</p>
<p>The table evo_categories contains the category name. Import them to wp_terms.</p>
<p>WordPress handles categories using wp_terms and wp_term_taxonomy tables</p>
<p><strong>Step5: </strong>Import the posts</p>
<p>The table evo_items__item contains the posts . Import them to wp_posts.</p>
<p><strong>Step6:</strong> Establish category-Post relation.</p>
<p>The table evo_postcats contains the relation between posts and categories. We can import them to wp_term_relationship</p>
<p>This is the difficult part of the job, since wordpress handles category using 3 tables wp_terms, wp_term_taxonomy and wp_term_relationships.</p>
<p><strong>Step6:</strong> Process the category counts, ie here we are counting how many posts per category</p>
<p><strong>Step7:</strong> Import coments</p>
<p>We have to  import comments from evo_comments to wp_comments</p>
<p>In this way we can import posts, comments, categories, category-post relationship. We can settle permanent link issue by editing wp_options table.</p>
<p>Update on May 17th 2009:<br />
   One of the clients asked whether I can fix tags and authors. I have updated the script to import tags and authors.<br />
So now the script will import posts, comments, categories, category-post relationship, tags tag-post relationships and authors. We can settle permanent link issue by editing wp_options table and .htaccess file.</p>
<p><strong>For the script, migrate.php , please contact gsh [dot] james [at] gmail [dot] com .  We will be happy to assist in importing your b2evolution blog to wordpress. [Paid Service]</strong></p>
<p>Price for the script : 30 USD<br />
Price for assistance (doing it by myself) : 50USD</p>
<p>Linkedin profile: http://www.linkedin.com/in/gishajames </p>
<p>Thanks</p>
]]></content:encoded>
			<wfw:commentRss>http://worth2read.org/blog/2009/01/31/import-from-b2evolution246-to-wordpress-27/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
