-
▼
2012
(336)
-
▼
October
(28)
- How to Load a WordPress Backup
- How to Redirect in Wordpress
- How to Put a Theme to a WordPress Blog
- How to Insert a Read More in WordPress Posts
- How to Turn Excerpt Off in WordPress 2.9.2
- How to Embed Images in Comments in WordPress
- How to Restore a WordPress Blog From EZ Backup
- How to Remove Featured Image
- How to Create a Free WordPress Blog Badge
- How to Check the RSS Outputs for WordPress
- How to Make Your Own Free WordPress Template
- How to Export Content From WordPress to Tumblr
- How to Change the Theme of a Wordpress Blog
- How to Export WordPress to Facebook
- How to Change WordPress Permalinks for Split Posts
- How to Embed YouTube in Thesis WordPress
- How to Make a New WordPress Blog
- How to Set Thumbnails in WordPress
- How to Convert Wordpress to a Doc
- How to Teach Yourself WordPress Visually
- How to FTP a Static Page in WordPress
- How to Install a Chat Room in WordPress
- How to Load an Artisteer Template to Wordpress
- How to Import Drupal Into WordPress
- How to Set Up the Mochi Plugin for WordPress
- How to Change a Sidebar Background Color With a Wo...
- How to Install Wordpress on Yahoo Hosting
- How to Insert Banners in Between WordPress Posts
-
▼
October
(28)
adsense
How to Import Drupal Into WordPress
Import Drupal Content
1. Open your Web browser and start phpMyAdmin or the tool your website uses for database administration. These programs are typically found on your Web-hosting control panel.
2. Click on the 'Import' tab. Upload your Drupal database into the exact same database where WordPress 2.7 is now installed.
3. Visit the 'SQL' tab on your database administration tool to begin pasting your SQL queries. Each query will follow the exact same procedure for copying and pasting.
4. Highlight the text in quotes below.'TRUNCATE TABLE tempdb.wp_comments;TRUNCATE TABLE tempdb.wp_links;TRUNCATE TABLE tempdb.wp_postmeta;TRUNCATE TABLE tempdb.wp_posts;TRUNCATE TABLE tempdb.wp_term_relationships;TRUNCATE TABLE tempdb.wp_term_taxonomy;TRUNCATE TABLE tempdb.wp_terms;'Right-click on the highlighted text and select 'Copy.' Return to the SQL query box. Right-click in the box and select 'Paste' to enter your queries. Click the 'Go' button. Repeat this process for every SQL query.
5. Import all of the taxonomy terms by highlighting the quoted text below.'INSERT INTO tempdb.wp_terms (term_id, `name`, slug, term_group)SELECTd.tid, d.name, REPLACE(LOWER(d.name), ' ', '-'), 0FROM tempdb.term_data dINNER JOIN tempdb.term_hierarchy hUSING(tid);INSERT INTO tempdb.wp_term_taxonomy (term_id, taxonomy, description, parent)SELECTd.tid `term_id`,'category' `taxonomy`,d.description `description`,h.parent `parent`FROM tempdb.term_data dINNER JOIN tempdb.term_hierarchy hUSING(tid);'Paste all of the highlighted text into the query box in your browser.
6. Copy and paste the query below to import all of your Drupal posts directly into WordPress.'INSERT INTOtempdb.wp_posts (id, post_date, post_content, post_title,post_excerpt, post_name, post_modified)SELECT DISTINCTn.nid, FROM_UNIXTIME(created), body, n.title,teaser,REPLACE(REPLACE(REPLACE(REPLACE(LOWER(n.title),' ', '-'),'.', '-'),',', '-'),' ', '-'),FROM_UNIXTIME(changed)FROM tempdb.node n, tempdb.node_revisions rWHERE n.vid = r.vid'
7. Copy and paste the query below into the query box to import each of your Drupal posts to the appropriate category.'INSERT INTO tempdb.wp_term_relationships (object_id, term_taxonomy_id)SELECT nid, tid FROM tempdb.term_node;'
8. Copy and paste the category count updating query below into the query box.'UPDATE wp_term_taxonomy ttSET `count` = (SELECT COUNT(tr.object_id)FROM wp_term_relationships trWHERE tr.term_taxonomy_id = tt.term_taxonomy_id);'
9. Keep unapproved comments hidden to visitors by copying and pasting the below query into the query box.'INSERT INTO tempdb.wp_comments (comment_post_ID, comment_date, comment_content, comment_parent, comment_author, comment_author_email, comment_author_url, comment_approved)SELECT nid, FROM_UNIXTIME(timestamp), comment, thread, name, mail, homepage, status FROM tempdb.comments;'
10. Update the comment counts on individual posts by copying and pasting the below query into the query box.'UPDATE `wp_posts` SET `comment_count` = (SELECT COUNT(`comment_post_id`) FROM `wp_comments` WHERE `wp_posts`.`id` = `wp_comments`.`comment_post_id`);'
11. Correct any line breaks within your content by copying and pasting the query below into the query box.'UPDATE tempdb.wp_posts SET post_content = REPLACE(post_content, '', '');'
12. Correct the image paths for all of the images that will be imported from Drupal. Copy and paste the query below into the query box.'UPDATE tempdb.wp_posts SET post_content = REPLACE(post_content, ''/sites/default/files/', ''/wp-content/uploads/');'
Import Images From Drupal
13. Open your favorite FTP program.
14. Log in to the website that has WordPress installed using the user name and password provided by your Web host.
15. Locate the directory where WordPress is installed. Click on the 'wp-content' folder and then on the 'uploads' folder. Leave this open.
16. Locate the path on your computer where you saved your Drupal website's files.
17. Navigate through your Drupal folders by clicking on the 'sites' folder. Then click on the 'default,' 'files' and 'content' folders.
18. Locate the 'images' folder inside of the 'content' folder.
19. Copy the entire 'images' folder directly into the WordPress 'uploads' folder. Your WordPress installation should now include all of your Drupal website's posts and images.
2:33 AM | Filed Under | 0 Comments
Comments
Popular Posts
-
1. Log in to your Weebly account. 2. Click 'Theme Editor.' 3. Click on the 'Design' tab. 4. Select 'Edit CSS/HTM...
-
1. Sign up for a publisher account at Bidvertiser. Submit basic contact information and confirm your email address to get started. 2. Lo...
-
1. Log in to your WordPress dashboard. 2. Open the 'Appearance' section on the left side of the WordPress dashboard and then cli...
-
1. Open your WordPress Dashboard in your preferred browser. It is accessed at the '/wp-admin' location of your site. For example, ...
-
Facebook Widget 1. Create a Facebook fan page for your blog, if you don't already have one. You will have to manually share content wi...
-
1. Download and install the WordPress for BlackBerry app via BlackBerry App World. Download the version that corresponds with your BlackBe...
-
1. Go to your WordPress blog's administrative control panel. 2. Click the 'Settings' button on the left-side navigation menu...
-
1. Click the 'Add Contact' button on the 'Add New Post' page. This opens the 'Add a Contact Form' page. 2. Click...
-
1. Register an account with Amazon Web Services Cloud. If you have an existing Amazon account, enter your email address in the appropriate...
-
1. Log into your WordPress.com account using your user name and password. 2. Hover your cursor over the 'My Blogs' tab at the to...
Post a Comment