We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 53460
    • 69 Posts
    I'm surprised just how difficult it is to find a definitive way to move a WordPress blog over to an existing MODX installation. My website currently uses resources stored inside collections and are displayed throughout with getResources or pdoTools, depending on the usage (so, not using Articles).

    I have about 6-7 older WordPress blogs that I'd like to explore the option of migrating into one existing platform. I'd rather not use Articles if at all possible to keep the CMS interface standard for our standard users.

    Does anyone have any suggestions of tools to use or recent tutorials anywhere that explain this process? It's hard to imagine that this isn't a more common issue.

    Thank you!
      • 3749
      • 24,544 Posts
      If you have PHP skills, you could possibly modify the Articles import code to work with Collections. It might be as simple as changing the 'class_key' field to 'modResource' (or whatever Collections uses) and putting your collections parent ID in the 'parent' field (or it might not).
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting
        • 32699 ☆ A M B ☆
        • 427 Posts
        W. Shawn Wilkerson Reply #3, 8 years, 6 months ago
        Quote from: jeffsydor at Mar 19, 2018, 04:19 PM
        I'm surprised just how difficult it is to find a definitive way to move a WordPress blog over to an existing MODX installation. My website currently uses resources stored inside collections and are displayed throughout with getResources or pdoTools, depending on the usage (so, not using Articles).

        I have about 6-7 older WordPress blogs that I'd like to explore the option of migrating into one existing platform. I'd rather not use Articles if at all possible to keep the CMS interface standard for our standard users.

        Does anyone have any suggestions of tools to use or recent tutorials anywhere that explain this process? It's hard to imagine that this isn't a more common issue.

        Thank you!


        Disclaimer: I haven't had the misfortune of the process, so I cannot guarantee this will work:

        http://devtrench.com/posts/first-impressions-of-xpdo-wordpress-to-modx-migration-tool

        There used to be a number of people who posted on the topic. The posts are a bit buried in Google now.
          Get your copy of MODX Revolution Building the Web Your Way http://www.sanitypress.com/books/modx-revolution-building-the-web-your-way.html

          Check out my MODX || xPDO resources here: http://www.shawnwilkerson.com
          • 53460
          • 69 Posts
          Quote from: BobRay at Mar 19, 2018, 05:55 PM
          If you have PHP skills, you could possibly modify the Articles import code to work with Collections. It might be as simple as changing the 'class_key' field to 'modResource' (or whatever Collections uses) and putting your collections parent ID in the 'parent' field (or it might not).

          I'd give that a shot, but when I click save after trying to import the WordPress XML file using Articles, nothing happens. :-/
            • 3749
            • 24,544 Posts
            Is using a CSV file an option?

            Is it just a list of pages or is it a tree?
              Did I help you? Buy me a beer
              Get my Book: MODX:The Official Guide
              MODX info for everyone: http://bobsguides.com/modx.html
              My MODX Extras
              Bob's Guides is now hosted at A2 MODX Hosting
              • 53460
              • 69 Posts
              Quote from: wshawn at Mar 19, 2018, 05:56 PM
              Disclaimer: I haven't had the misfortune of the process, so I cannot guarantee this will work:

              http://devtrench.com/posts/first-impressions-of-xpdo-wordpress-to-modx-migration-tool

              There used to be a number of people who posted on the topic. The posts are a bit buried in Google now.

              I'm working on trying this. But I'm not sure about something. How do you install or run this code fro xPDO? Is it a plugin or something else?
                • 53460
                • 69 Posts
                Quote from: BobRay at Mar 20, 2018, 02:45 PM
                Is using a CSV file an option?

                Is it just a list of pages or is it a tree?

                I don't think so.
                  • 3749
                  • 24,544 Posts
                  I'm working on trying this. But I'm not sure about something. How do you install or run this code fro xPDO? Is it a plugin or something else?

                  They are two separate snippets. Just create two snippets with the code in them, call them WPConvert1 and WPConvert2.

                  Then create a resource with just this tag and view it:

                  [[!WPConvert1]]


                  Then change the tag to this, save it, and view it again:

                  [[!WPConvert2]]


                  I would back up the MODX DB first.
                    Did I help you? Buy me a beer
                    Get my Book: MODX:The Official Guide
                    MODX info for everyone: http://bobsguides.com/modx.html
                    My MODX Extras
                    Bob's Guides is now hosted at A2 MODX Hosting
                    • 53460
                    • 69 Posts
                    Quote from: BobRay at Mar 22, 2018, 05:51 PM
                    They are two separate snippets. Just create two snippets with the code in them, call them WPConvert1 and WPConvert2.

                    Then create a resource with just this tag and view it:

                    [[!WPConvert1]]


                    Then change the tag to this, save it, and view it again:

                    [[!WPConvert2]]


                    I would back up the MODX DB first.

                    Just view it? Haha, that seems suspiciously easy. LMAO.

                    I mean it just seems like this is something that should have a different process. Maybe with 3.0?
                      • 53460
                      • 69 Posts
                      The first Snippet worked perfectly, everything loaded after editing the snippet to include the localhost's password.

                      However the second Snippet doesn't. I keep getting a 500 Server Error. I'm not sure why.