---
layout: docs
title: WordPress
prev_section: typo
link_source: wordpress
next_section: wordpressdotcom
permalink: /docs/wordpress/
---

To import your posts from a self-hosted [WordPress](http://wordpress.org)
installation, run:

{% highlight bash %}
$ ruby -rubygems -e 'require "jekyll-import";
    JekyllImport::Importers::WordPress.run({
      "dbname"   => "",
      "user"     => "",
      "password" => "",
      "host"     => "localhost",
      "socket"   => "",
      "prefix"   => "wp_",
      "clean_entities" => true,
      "comments"       => true,
      "categories"     => true,
      "tags"           => true,
      "more_excerpt"   => true,
      "more_anchor"    => true,
      "status"         => ["publish"]
    })'
{% endhighlight %}

None of the fields are required. Their defaults are as you see above.

<div class="note info">
  <h5>This only imports post &amp; page data &amp; content</h5>
  <p>
    This importer only converts your posts and creates YAML front-matter.
    It does not import any layouts, styling, or external files
    (images, CSS, etc.).
  </p>
</div>

---
layout: docs
title: WordPress
prev_section: typo
link_source: wordpress
next_section: wordpressdotcom
permalink: /docs/wordpress/
---

To import your posts from a self-hosted [WordPress](http://wordpress.org)
installation, run:

{% highlight bash %}
$ ruby -rubygems -e 'require "jekyll-import";
    JekyllImport::Importers::WordPress.run({
      "dbname"   => "",
      "user"     => "",
      "password" => "",
      "host"     => "localhost",
      "socket"   => "",
      "table_prefix"   => "wp_",
      "clean_entities" => true,
      "comments"       => true,
      "categories"     => true,
      "tags"           => true,
      "more_excerpt"   => true,
      "more_anchor"    => true,
      "status"         => ["publish"]
    })'
{% endhighlight %}

None of the fields are required. Their defaults are as you see above.

<div class="note info">
  <h5>This only imports post &amp; page data &amp; content</h5>
  <p>
    This importer only converts your posts and creates YAML front-matter.
    It does not import any layouts, styling, or external files
    (images, CSS, etc.).
  </p>
</div>

Change prefix to table_prefix to match the code
Change prefix to table_prefix to match the code