Title: FAQ Working with WordPress
Author: Dion Hulse
Published: 16 Novembre 2018
Last modified: 27 Giugno 2020

---

# FAQ Working with WordPress

## Administration

### Can my posts have URL instead of /index.php?p=76?

See:

 * [Using Permalinks](https://it.wordpress.org/support/article/using-permalinks/?output_format=md)

### How can I find out if I have mod_rewrite?

To get information about your server, you can use the `phpinfo()` function:

 1. Paste this into [text editor](https://it.wordpress.org/support/article/glossary/?output_format=md#text-editor)

    ```wp-block-preformatted
    <?php phpinfo(); ?>
    ```

 1. Save as **info.php** Upload to server. Visit in your browser (www.example.com/info.
    php)

The **info.php** file returns a page outlining the details of your PHP installation.
You can see if [ mod_rewrite](https://it.wordpress.org/support/article/glossary/?output_format=md#mod_rewrite)
is loaded. Under the **apache** header, look in the **Loaded Modules** section and
see if mod_rewiite is listed.

### How do I change file and folder permissions?

See:

 * [Changing File Permissions](https://codex.wordpress.org/Changing File Permissions)

### How long is the release cycle of WordPress?

A major release of WordPress happens every 6 months or so. Suggest and vote on ideas
for future releases at [the WordPress Extend Ideas site](https://wordpress.org/ideas/).

Also refer [WordPress Versions](https://codex.wordpress.org/WordPress Versions) 
for the chronologically listed versions of WordPress along with the Change Log information
on new features and improvements in each version. There are the future releases 
and links to their respective milestones in the bug tracker.

### How do I turn on Permalinks, and what do I do about the errors?

See:

 * [Using Permalinks](https://it.wordpress.org/support/article/using-permalinks/?output_format=md)

### What are Roles for and what permissions do different Roles have?

See:

 * [Roles and Capabilities](https://codex.wordpress.org/Roles_and_Capabilities)

### Does the _644_ permissions on _wp-config.php_ compromise the username and password to all other users on my shared server?

This is a limitation of the way PHP is set up on your server. If you previously 
used Movable Type, Perl was probably set up with suexec so Movable Type executed
as your user. In this case, PHP is running as the web server user, which is why 
it has to be at least 444. There is phpsuexec but it seems many hosts don’t use 
it.

However this is often not an issue on modern shared hosts because even though the
file is “World” readable each account is set up with a “jailshell” which keeps people
locked in their home directory, and PHP can be easily modified with an open_basedir
restriction to keep people from writing PHP scripts to read your files. If you are
really concerned, you should contact your host to see what measures they are taking.

### How do I redirect users back to my blog’s main page after they login?

By default, WordPress reroutes a registered user to the [Administration Screens](https://it.wordpress.org/support/article/administration-screens/?output_format=md)
after they log into the blog. To change the page, there are WordPress Plugins that
can handle the redirect, or you can set the Theme function to handle it. See [Function_Reference/wp_login_url](https://codex.wordpress.org/Function_Reference/wp_login_url).

### How do I change permissions for my files so I can edit them using the Theme Editor?

See:

 * [Changing File Permissions](https://codex.wordpress.org/Changing File Permissions)

### How do I prevent my images from being hot-linked by another website?

You can use your .htaccess file to protect images from being hot linked, or, in 
other words, being linked-to from other websites. This can be a drain on your bandwidth,
because if someone links directly to the image on your site, then you lose the bandwidth.

### How do I backup and restore my WordPress database using phpMyadmin?

See:

 * [Backing Up Your Database](https://it.wordpress.org/support/article/backing-up-your-database/?output_format=md)
   and [Restoring Your Database From Backup](https://it.wordpress.org/support/article/restoring-your-database-from-backup/?output_format=md)

### How do I prevent comment flooding?

Comment flooding is when a lot of comments (probably spam) are posted to your website
in a very short duration of time. This is only one aspect of the broader problem
of [comment spam](https://codex.wordpress.org/Comment Spam) in general, but it can
quickly overwhelm a moderator’s ability to manually delete the offending comments.

WordPress manages the worst floods automatically by default. Any commenters from
the same IP or e-mail address (other than registered users with `manage_options`
[capabilities](https://it.wordpress.org/support/article/roles-and-capabilities/?output_format=md))
that post within 15 seconds of their last comment gets their comment discarded. 
The time setting can be changed by a [number of plugins](https://wordpress.org/plugins/search.php?q=comment+flood)
that extend this functionality. You might also consider one of the many broader 
spam blocking plugins, such as [Akismet](https://wordpress.org/plugins/akismet/),
or even turning your comment system over to [Disqus](https://wordpress.org/plugins/disqus-comment-system/).

You could also just change the time setting by inserting the following filter into`
functions.php` of your current theme. Or you may create and install a very basic
plugin and insert the following code:

    ```wp-block-preformatted
    function dam_the_flood( $dam_it, $time_last, $time_new ) {
        if ( ($time_new - $time_last) < 300 ) // time interval is 300
            return true;                  // seconds
        return false;
    }
    add_filter('comment_flood_filter', 'dam_the_flood', 10, 3);
    ```

[Creating plugins](https://codex.wordpress.org/Writing a Plugin) can be very easy,
the above code actually has most of the work done for you.

### Why can’t I delete the _uncategorized_ Category?

Deleting a category does not delete the posts in that category. Instead, posts that
were only assigned to the deleted category are set to the _uncategorized_ category.
Also, **all** [Pages](https://it.wordpress.org/support/article/pages/?output_format=md)
are assigned the _uncategorized_ Category.

The _uncategorized_ category cannot be deleted, however you can specify your default
categories for posts on the _Settings_ – _Writing_ screen of the [Administration Screens](https://it.wordpress.org/support/article/administration-screens/?output_format=md).

### Why is there no Page Template option when writing or editing a Page?

If there is no Page Template option when writing or editing a [Page](https://it.wordpress.org/support/article/pages/?output_format=md)
it may because there is no [template file](https://codex.wordpress.org/Stepping Into Templates)
with the proper structure. For the Page Template box to be available to assign to
a [Page](https://it.wordpress.org/support/article/pages/?output_format=md) there
must be a least one template file in your theme that has a structure at the beginning
of the template file that looks like this:

    ```wp-block-preformatted
    <?php
    /*
    Template Name: My Custom Page
    */
    ?>
    ```

Create a new PHP file with any name under the theme directory and put above codes
into the file. You will see the Page Template box appears that includes “My Custom
Page” option in the Page Edit Screen. For more detail about Custom Page Template,
refer [Page Templates](https://codex.wordpress.org/Page Templates).

### How can I have a static front page and posts display on a page as Web site top page?

See:

 * [Creating a Static Front Page](https://it.wordpress.org/support/article/creating-a-static-front-page/?output_format=md)

This is the example Page Template if you want to display one latest post, instead
of the Page content, on your static front page.

    ```wp-block-preformatted
    <?php
    /*
    Template Name: MyFront
    */
    get_header(); ?>

        <div id="primary" class="content-area">
            <main id="main" class="site-main" role="main">

            <?php
            $args = array('posts_per_page' => 1, 'cat' => 1);
            $the_query = new WP_Query( $args );

            // The Loop
            while ( $the_query->have_posts() ) : $the_query->the_post();

                    get_template_part( 'content', get_post_format() );

            // End the loop.
            endwhile;
            ?>       

            </main><!-- .site-main -->
        </div><!-- .content-area -->

    <?php get_footer(); ?>
    ```

See also:

 * [Stepping Into Templates](https://codex.wordpress.org/Stepping Into Templates)
 * [Forum thread showing this in action](https://wordpress.org/support/topic/237267)

### How do I determine a Post, Page, Category, Tag, or User ID?

Sometimes it is necessary to know the ID of a particular Post, Page, Category, Tag,
or User. To determine that ID, use one of these method:

 * Look in your browser status bar for the ID:
    1. Visit the related list table screen in your Administration Screen. For instance
       in the case of Posts visit Posts->All Posts, for Pages visit Pages->All Pages,
       and for Categories visit Posts->Categories.
    2. Now hover your mouse over the ‘item’ you need the ID. In the case of Pages, 
       hover over that particular Page’s title in the Title column and for Categories
       hover over the Categories Name in the Name column.
    3. Look at the status bar (at the bottom of your browser) and the you will find
       at the end of the line something like “post=123” or “tag_ID=67”. In these cases,
       123 is the Page ID, and 67 is the Category ID.
 * Install a plugin:
    1. Install and activate [Reveal IDs for WP Admin](https://wordpress.org/plugins/reveal-ids-for-wp-admin-25/)
       or others.
    2. Find the ID displayed with each item.

## Configuration

### How can I change how the date and / or time is displayed?

See:

 * [Formatting Date and Time](https://it.wordpress.org/support/article/formatting-date-and-time/?output_format=md)

### How can I control comments people make?

See:

 * [Comment Moderation](https://codex.wordpress.org/Comment Moderation)

### What do the Discussion Options mean?

See:

 * [Discussion Screen](https://it.wordpress.org/support/article/settings-discussion-screen/?output_format=md)

### How do I install plugins?

See:

 * [Managing Plugins](https://it.wordpress.org/support/article/managing-plugins/?output_format=md)

### How can I change what appears between Categories when I post in more than one Category?

In [Twenty Fifteen](https://it.wordpress.org/support/article/twenty-fifteen/?output_format=md)
theme, the post’s multiple categories are displayed with commas between them. To
configure the way the categories display,

 1. Create a [Child Themes](https://codex.wordpress.org/Child Themes) of [Twenty Fifteen](https://it.wordpress.org/support/article/twenty-fifteen/?output_format=md)
    theme.
 2. Copy `twentyfifteen_entry_meta()` function from parent’s `inc/template-tags.php`
    to child theme’s `functions.php`.

    ```wp-block-preformatted
    function twentyfifteen_entry_meta() {
        if ( is_sticky() && is_home() && ! is_paged() ) {
            :
        }
    }
    ```

 1. Replace ‘, ‘ in the argument of `get_the_category_list` call in `twentyfifteen_entry_meta()`
    function.

    ```wp-block-preformatted
    $categories_list = get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfifteen' ) );
    ```

If you change it by ‘ > ‘, ‘ &bull; ‘ or ‘ | ‘ then you will see an arrow, a bullet
or “pipe” (|) between the categories.

 1. Activate the child theme.

### Why are all the comments being moderated?

Go to the [Settings](https://it.wordpress.org/support/article/administration-screens/?output_format=md#settings-configuration-settings)
> [Discussion](https://it.wordpress.org/support/article/administration-screens/?output_format=md#discussion)
screen and make sure that **Comment must be manually approved** is unchecked. With
that option selected, all comments are sent to the moderation queue to await approval.

Make sure that **Hold a comment in the queue if it contains x or more links.** is
not blank and contains a number higher than zero. If this value is blank or zero,
all comments containing links will be moderated.If the option mentioned above is
unchecked, the link moderation value is higher than zero, and you still have this
problem, then upgrade the comment spam plugins you have installed. If this continues
to be a problem, deactivate the comment spam plugins one by one to determine the
culprit and contact the plugin author for help.

### How do I disable comments?

First, uncheck **Allow people to post comments on new articles** on the [Settings](https://it.wordpress.org/support/article/administration-screens/?output_format=md#settings-configuration-settings)
> [Discussion](https://it.wordpress.org/support/article/administration-screens/?output_format=md#discussion)
screen. This will only disable comments on _future posts_.
Next, to completely disable
comments, you will have to edit each past post and uncheck **Allow Comments** from
the [Edit Post](https://it.wordpress.org/support/article/writing-posts/?output_format=md)
screen. Use Bulk Edit to disable multiple posts at once.

 1. In the [Posts_Screen](https://it.wordpress.org/support/article/posts-screen/?output_format=md),
    check the checkbox in the Table’s title to select all Posts in a given table.
 2. From Bulk Actions box, select Edit and click Apply.
 3. In the Bulk Edit Screen, select Do not allow option from Comments box
 4. Click Update.

[⌊Posts Bulk Edit Screen⌉⌊Posts Bulk Edit Screen⌉[

Alternatively, you could run below MySQL query from the command line on a shell 
account or using [phpMyAdmin](https://it.wordpress.org/support/article/phpmyadmin/?output_format=md),
or through a [wp-cli](https://codex.wordpress.org/wp-cli) `wp db query`:

    ```wp-block-preformatted
    UPDATE wp_posts SET comment_status = 'closed';
    ```

If your goal is to permanently remove comments, then follow the next steps. This
is the example of [Twenty Fifteen](https://it.wordpress.org/support/article/twenty-fifteen/?output_format=md)
theme customization.

 1. Create a [Child Themes](https://codex.wordpress.org/Child Themes) of [Twenty Fifteen](https://it.wordpress.org/support/article/twenty-fifteen/?output_format=md)
    theme.
 2. Copy `twentyfifteen_entry_meta()` function from parent’s `inc/template-tags.php`
    to child theme’s `functions.php`.
 3. Comment out the if block that contains `comments-link`.

    ```wp-block-preformatted
    function twentyfifteen_entry_meta() {
        if ( is_sticky() && is_home() && ! is_paged() ) {
            :
        }

        // if ( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) {
        //  echo '';
        //  /* translators: %s: post title */
        //  comments_popup_link( sprintf( __( 'Leave a comment on %s', 'twentyfifteen' ), get_the_title() ) );
        //  echo '';
        // }
    }
    ```

It removes the number of comments or “Leave a comment” message from bottom of each
post.

 1. Newly create `comments.php` under the Child Theme’s directory without any contents.
    It removes the comment area of exsiting posts.
 2. Activate the Child Teheme.

### How do I disable trackbacks and pingbacks?

First, uncheck **Allow link notifications from other blogs (pingbacks and trackbacks)
on new articles** on the [Settings](https://it.wordpress.org/support/article/administration-screens/?output_format=md#settings-configuration-settings)
> [Discussion](https://it.wordpress.org/support/article/administration-screens/?output_format=md#discussion)
screen. This will only disable trackbacks and pingbacks on _future posts_.
Next,
to completely disable trackbacks and pingbacks, you will have to edit each past 
post and uncheck **Allow trackbacks and pingbacks on this page** from the [Edit Post](https://it.wordpress.org/support/article/writing-posts/?output_format=md)
screen. Use Bulk Edit to disable multiple posts at once. See also above image.

 1. In the [Posts_Screen](https://it.wordpress.org/support/article/posts-screen/?output_format=md),
    check the checkbox in the Table’s title to select all Posts in a given table.
 2. From Bulk Actions box, select Edit and click Apply.
 3. In the Bulk Edit Screen, select Do not allow option from Pings box.
 4. Click Update.

Alternatively, you could run this MySQL query from the command line on a shell account
or using [phpMyAdmin](https://it.wordpress.org/support/article/phpmyadmin/?output_format=md),
or through a [wp-cli](https://codex.wordpress.org/wp-cli) `wp db query`:

    ```wp-block-preformatted
    UPDATE wp_posts SET ping_status = 'closed';
    ```

### How do I change the _site admin_ name?

To change your Admin Name, in the [Administration Screens](https://it.wordpress.org/support/article/administration-screens/?output_format=md),
choose the **Users->Your Profile** menu. Make your changes there. However, you are
not able to change the username from within the Administration screen. In order 
to do this you must directly edit the MySQL database, however this is not recommended
as your username is not often seen by other users.

See:

 * [Users Your Profile Screen](https://it.wordpress.org/support/article/users-your-profile-screen/?output_format=md)

### How do I find the absolute path I need for uploading images?

 1. Open the below page from your Browser

    ```wp-block-preformatted
    http://(site URL)/wp-admin/options.php
    ```

 1. Refer `upload_url_path` option value.
     If the value is blank, then the directory`
    wp-content/upload` is the default destination to save.

### Which files do I change to alter the way my blog looks?

See:

 * [Theme Development Handbook](https://developer.wordpress.org/themes/)

### How do I upload images?

See:

 * [Inserting Media into Posts and Pages](https://it.wordpress.org/support/article/inserting-images-into-posts-and-pages/?output_format=md)

### Can I change the “Error establishing database connection” message to something more descriptive?

Just simply create a file to reside at _wp-content/db-error.php_, and in that file
put the message you want displayed to users when WordPress determines the database
connection is not available. That file will be used in place of “Error establishing
database connection” message. You could even use the _db-error.php_ to redirect 
users elsewhere. Here’s an example for _db-error.php_:

    ```wp-block-preformatted
    <?php
    <pre>echo '<h2> This site is currently experiencing a problem with the database server.</h2>  Press your browser Reload button to try again!';
    ?>
    ```

## Modifying

### Can I change the Smilies?

See:

 * [Using Smilies](https://it.wordpress.org/support/article/using-smilies/?output_format=md)

### How do I edit files?

See:

 * [Editing Files](https://codex.wordpress.org/Editing_Files)

### What is _The Loop_?

See:

 * [The Loop](https://codex.wordpress.org/The Loop) and [The Loop in Action](https://codex.wordpress.org/The Loop in Action)

### How can I change the URL-structure for my posts?

See:

 * [Using Permalinks](https://it.wordpress.org/support/article/using-permalinks/?output_format=md)

### How can I change URL-structure for my posts on a Windows server?

See:

 * [Using Permalinks Without mod rewrite](https://codex.wordpress.org/Using_Permalinks#Using_Permalinks_Without_mod_rewrite)

### How do I use WordPress Template Tags to change what is displayed on the blog?

See:

 * [Template Tags](https://codex.wordpress.org/Template Tags)

### How do I get _All_ links to open in a new window?

Put this inside the section of your Theme’s [template header.php](https://codex.wordpress.org/Theme_Development#Template_Files)
file:

    ```wp-block-preformatted
    <base target="_blank" />
    ```

See:

 * [Using Themes](https://codex.wordpress.org/Using Themes)
 * [W3 Schools base tag explanation](http://www.w3schools.com/tags/tag_base.asp)

### How can I add an image to my RSS feed?

See:

 * [Add an image to your RSS 2.0 feed at wordlog.com](http://wordlog.com/archives/2004/08/01/add-an-image-to-your-rss-20-field/)

### If I turn off comments, it says “Comments Off” on the weblog. so how do I remove that?

Depending on your theme, some other message of similar intent may be displayed. 
The specifics of how to remove this message is theme dependent. You should be able
to find the offending text in your theme’s `comments.php` file. If it’s displayed
by a PHP function, comment out the function with slash-asterisks ‘`/*`‘ and ‘`*/`‘_(
without quotes)_ on either end of the function:

    ```wp-block-preformatted
    <?php /* _e( 'Comments are closed.' , 'twentytwelve' ); */ ?>
    ```

If it’s simply HTML, comment out the enclosing HTML tags by adding ‘`&lt;!-- `‘ 
and ‘` --&gt;`‘ _(not including the quotes, note the space after the first and before
the last comment symbols)_:

    ```wp-block-preformatted
    <!-- <p class="nocomments">Comments are closed.</p> -->
    ```

If you decide later to restore the message, you can simply remove the comment symbols.

### How do I change what is shown when I password protect a post?

Hook the filters ‘`the_title`‘ and ‘`the_password_form`‘. Your filter function is
passed exactly what the filter names imply. Use the `str_replace()` function to 
search out the offending text and replace it with your preference (or nothing).

Note the ‘`the_title`‘ filter fires for every single title, not just password protected
posts, so you need to use the existence of the `post_password` property to know 
whether to apply the string replace function or not.Some themes may also have additional
locations where content needs to be canged. Next example works with [Twenty Fifteen](https://it.wordpress.org/support/article/twenty-fifteen/?output_format=md)
Theme.

    ```wp-block-preformatted
    add_filter('the_title', 'replace_protected', 10, 2);
    function replace_protected( $title, $id ) {
        $post = get_post( $id );
        if ( ! empty( $post->post_password ) ) {
            $title = str_replace('Protected:', 'Hidden:', $title);
        }
        return $title;
    }
    add_filter('the_password_form', 'replace_message');
    function replace_message( $form ) {
        return str_replace('This post is password protected. To view it please enter your password below:',
            'Enter you password below to see the surprise:', $form);
    }
    ```

### How can I allow certain HTML tags in my comments?

Use a custom filter in your themes `functions.php` or plugin:

    ```wp-block-preformatted
    add_filter('preprocess_comment','fa_allow_tags_in_comments');

    function fa_allow_tags_in_comments($data) {
        global $allowedtags; 
        $allowedtags['span'] = array('style'=>array());
        $allowedtags['p'] = array();   
        return $data;
    }
    ```

### How can I add advanced search ability to WordPress?

See:

 * [Advanced Contextual Search for WordPress at Weblog Tools Collection](http://weblogtoolscollection.com/archives/2004/06/07/advanced-contextual-search-for-wordpress/)

## Posts

### How do I upload an image and display it in a post?

See:

 * [Inserting Media into Posts and Pages](https://it.wordpress.org/support/article/inserting-images-into-posts-and-pages/?output_format=md)

### What is pingback?

See:

 * [Introduction to Blogging, Pingbacks](https://it.wordpress.org/support/article/introduction-to-blogging/?output_format=md#pingbacks)

### What is trackback?

See:

 * [Introduction to Blogging, Trackbacks](https://it.wordpress.org/support/article/introduction-to-blogging/?output_format=md#trackbacks)

### Where is the permalink to my post?

See:

 * [Linking Posts, Pages, and Categories](https://codex.wordpress.org/Linking Posts Pages and Categories)

### Can I use desktop blogging software?

See:

 * [Weblog Client](https://codex.wordpress.org/Weblog Client)

### Can I blog by email?

See:

 * [Post to your blog using email](https://codex.wordpress.org/Post to your blog using email)

## Spam, Spammers, Comments

### What can I do to stop comment spam?

See:

 * [Combating Comment Spam](https://codex.wordpress.org/Combating Comment Spam)

### More Information on Comment Spam

See:

 * [Comment Spam](https://codex.wordpress.org/Comment Spam)

## Importing and Exporting

### How do I Import a WordPress WXR file when it says it is too large to import?

If a WordPress WXR file, an XML file exported from WordPress, is too large to import,
there are several things you might try to overcome that limit.

 * Edit _php.ini_‘. Some hosts may not allow this settings.

    ```wp-block-preformatted
    memory_limit = 300M
    post_max_size = 200M
    upload_max_filesize = 100M
    max_execution_time = 600
    ```

 * memory_limit: Maximum amount of memory in bytes that a PHP script is allowed 
   to allocate.

**Note:** memory_limit should be larger than post_max_size, and post_max_size must
be larger than upload_max_filesize.

 * Edit _.htaccess_. Some hosts may not allow this settings.

    ```wp-block-preformatted
    php_value memory_limit 300M
    php_value post_max_size 200M
    php_value upload_max_filesize 100M
    ```

 * Edit _wp-config.php_

    ```wp-block-preformatted
    define('WP_MEMORY_LIMIT', '64MB');
    ```

See also [Increasing memory allocated to PHP](https://it.wordpress.org/support/article/editing-wp-config-php/?output_format=md#increasing-memory-allocated-to-php).

 * In multisite environment, configure following settings
    1. From Network Admin dashboard, select Settings > Network Settings and increase
       the values of ‘Site upload space’ and ‘Max upload file size’.
    2. From Network Admin dashboard, select Sites > All Sites and click Edit menu under
       your site. Click Settings tab and incease the value of ‘Site Upload Space Quota’
       or leave it blank for network default
 * GZip the file. On some hosting services, a gzipped file can be automatically 
   expanded in the background, without WordPress ever knowing the difference. This
   can allow you to make the file small enough to be fit into the maximum upload
   size constraints.
    1. On Windows, use 7Zip to create a gz archive out of the WXR file.
    2. On Linux, use the gzip command line.
    3. Make sure that the resulting file has the file extension of “.gz” before uploading
       it, as this is often necessary.
    4. This is not guaranteed to work, as it highly depends on the hosting configuration.
       If this fails, then try another method instead.
 * Break the WordPress WXR file into smaller pieces by separating the data between
   posts and pasting the header/footer into each file.

1. Always have the header

    ```wp-block-preformatted
    <rss version="2.0"
        xmlns:excerpt="https://wordpress.org/export/1.2/excerpt/"
        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:wp="https://wordpress.org/export/1.2/"
    >
    <channel>
    including all info like category, tags, etc to just before the first  
    ```

2. Always have the footer

    ```wp-block-preformatted
    </channel>
    </rss>
    ```

3. In between, add the posts start with end with and check to see whether the XML
file you’re creating is less than or equal to 2MB. You’ll get the hang of it.

4. As always, before importing the new XML’s, backup the database of the blog you
are importing the XML files to and might as well export XML file of that blog as
well for good measure.

See:

 * [Importing Content](https://it.wordpress.org/support/article/importing-content/?output_format=md)
    - [Editing wp-config.php](https://it.wordpress.org/support/article/editing-wp-config-php/?output_format=md)
    - [Forum discussion on program that helps with splitting the file into pieces](https://wordpress.org/support/topic/367059)

WXR Splitter Utilities:

    - [WordPress WXR File Splitter utility for Windows](http://bit.ly/b5NhEH)
    - [WordPress WXR File Splitter utility for Mac OS X](http://suhastech.com/wordpress-wxr-xmlfile-splitter-for-mac-os-x/)

### How do I import links (blogroll) from another WordPress blog?

See:

[Importing Content](https://it.wordpress.org/support/article/importing-content/?output_format=md)

[Codex FAQ](https://codex.wordpress.org/FAQ)