How to import XML file into Wordpress?

by 4 replies
6
I have a xml template that I use for blogger. It makes my blogger look like a simple landing page. I want to use this same template on my wordpress.org website to make my pages look the same way they do on blogspot.com

I tried going to Tools - Import - Wordpress - but when I try to upload my xml file I get the following error:
"Sorry, there has been an error.
This does not appear to be a WXR file, missing/invalid WXR version number"

What could be the problem?:confused:
#main internet marketing discussion forum #file #import #wordpress #xml
  • The importer tool is for content stored in a database (posts etc), not for templates. WordPress wouldn't be able to understand it. I'm not familiar with blogger but you probably would be better of trying some landing page plugin or a theme that has its own landing page templates.
    • [ 1 ] Thanks
    • [1] reply
    • You can create a page template and include your Xml page.


      Use the code below:


      /*
      Template Name: Xml Page

      ^^ this is important you can name the template anything you want.
      "Template Name:" must be exactly as above

      You need to "Add New Page" from the wordpress dashboard.

      You just need to fill in the 'Page Title' and you need to go into "Page Attributes" and select the template you named above. The Page name is important, and it will be in the URL if your permalinks include /%postname%/
      I suggest you place any images in a directory off the wordpress root called "images and make sure all the image links are correct.
      */

      // insert all of your XML between here


      // and here you can include any XML, html markup, or php code you like


      copy everything between the and including the and to the file and save it in your wp-content/themes/youractivetheme subdirectory as "pick-a-unique-name.php"

      You may need to create a new theme or a child theme .

      For additional information go to Pages « WordPress Codex
  • Are you trying to use a blogger template as a WordPress theme or import your blogger content into WP? I'm pretty sure you can't import a blogger template as a WP theme without somebody creating the theme for you. If you want to import your Blogger content into WP then try reading this.
  • You aren't going to be able to import a template theme from blogger to wordpress. At least not by just clicking a button anyway. If you haven't used wordpress before it could be a bit tricky. I'd recommend just making a new page in Wordpress. But the good news is that there are tons of awesome landing page templates that are available for download as either plugin or themes.

    One of the best is OptimizePress, I've recently started using Instabuilder.

Next Topics on Trending Feed

  • 6

    I have a xml template that I use for blogger. It makes my blogger look like a simple landing page. I want to use this same template on my wordpress.org website to make my pages look the same way they do on blogspot.com I tried going to Tools - Import - Wordpress - but when I try to upload my xml file I get the following error: