Support » Everything else WordPress » wp-cli import – media?

  • justin-bigscoots

    (@justin-bigscoots)


    Hello,

    Trying to avoid timeout issues importing via WP so will be using wp-cli.

    wp import all.xml –authors=create

    Works however its not pulling any media, how can I use wp-cli to import media for each post as well?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • widowselina

    (@widowselina)

    Hi,

    WP CLI also downloads the media automatically (with your import command).

    The problem may be different. Does your all.xml file contain media files? Are media files available?

    So the attachment in the all.xml file is:
    <wp:attachment_url>https://wpthemetestdata.files.wordpress.com/2008/06/canola2.jpg</wp:attachment_url>

    Is this link available?

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.