We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 46164
    • 5 Posts
    Hi I work for a charity whose site is run on Modx Revolution. I need to create a Wordpress blog, and just wanted to know what people feel is the best way to integrate the two.

    These are the options as far as I understand it:

    1. Create a Wordpress.com blog on a separate domain and just have a 'blog' button on the main menu of the modx site that redirects to wordpress. Simple but not much integration.

    2. Create a wordpress.org blog on a sub domain of the modx site, which shares the modx database. more integration but I would be worried by security issues from sharing databases.

    3. Create a wordpress blog on a separate domain and find a way to show recent posts in the footer of the modx site, so the sites at least appear to be integrated. I think this is the preferred option but don't know how to do this.

    I should add that I'm not a great php coder and would prefer to keep things simple.

    Can anyone help with this? I'd really appreciate your thoughts.

    Thanks [ed. note: patump last edited this post 12 years, 9 months ago.]
      • 44234
      • 219 Posts
      I know that you can have MODX installed at root level and install wordpress into a subfolder (www.foo.com/blog/) with no problems. Not sure about a subdomain but don't see why not.

      I would not however share the database. Mainly for security reasons but also to keep things tidy and seperate when debugging problems etc.

      The above does not intergrate them at all though. You would have seperate managers for wordpress and MODX. If you wanted to 'show recent posts in the footer of the modx site' then I would use the blogs RSS feed and display the posts on your MODX site using an extra like getFeed.
        Find me on Twitter, GitHub or Google+
        • 10208 ☆ A M B ☆
        • 1,780 Posts
        If you're looking for integration, why wouldn't Articles be a choice to do the blogging part? I have a client who is in the process of killing a subdomain WP install because it does not integrate into their main website. They have a link to the blog from the menu, but all it did was create more work and some significant separation of content away from the site itself.

        Just a suggestion, in case you'd like your blog articles to be usable within your MODX site, try Articles?
          Frogabog- MODX Websites in Portland Oregon
          "Do yourself a favor and get a copy of "MODX - The Official Guide" by Bob Ray. Read it.
          Having server issues? These guys have MODX Hosting perfected - SkyToaster
          • 38723
          • 165 Posts
          Quote from: frogabog at Jan 02, 2014, 02:36 PM
          If you're looking for integration, why wouldn't Articles be a choice to do the blogging part? I have a client who is in the process of killing a subdomain WP install because it does not integrate into their main website. They have a link to the blog from the menu, but all it did was create more work and some significant separation of content away from the site itself.

          Just a suggestion, in case you'd like your blog articles to be usable within your MODX site, try Articles?

          I'd also suggest using Articles, unless there is Wordpress specific functionality required that is not available in Articles.

          If it's just a basic blog, and needs basic tagging - use Articles.
          If you need to show related posts - use getRelated as well.

          Articles will cover most user's basic needs. Wordpress does a lot more but why have that content separate to the rest of the site if it's not really necessary?
            • 577
            • 132 Posts
            I agree with the comment on using Articles , however if that is not an option then here is a potential solution.

            Install on a subdomain then use something like getFeed or you could easily write your own snippet that makes a curl call to the domain to pull back whatever you want to display through RSS. It might be a bit trickier if you wanted to support posting comments as well but that should be easy enough with either a direct insert into the DB table and bypass WP all together or POST to a endpoint in the WP domain that can trap the POST, validate, scrub and then insert the code as if it was posted directly from the WP site directly.
              "One of these days I will get around to my own website... Its only been about 12 years... maybe tomorrow smiley"
              • 46164
              • 5 Posts
              Hi Thanks for all your useful suggestions. I guess the main reason for wanting to use WordPress is that I'm much more familiar with it, and I'd like to be able to use categories, but I'm going to look into Articles too.
                • 18367
                • 834 Posts
                Patump,

                you can have categories on a Modx blog, but not with Articles.

                I replaced and moved my Wordpress blog to Modx and have never regretted it.

                So if you have the time and the inclination that's what I'd recommend, far less hassles and headaches than dealing with Wordpress.

                I built this blog with Modx http://www.makethemclick.com.au/library and it has categories.

                Although I didn't use Articles, I just followed the original Modx tute on how to build a blog.

                PS If you're starting from scratch and don't need to import old WP content, then I'd definitely just stick to Modx and not even bother with WP.

                Having just one platform to look after is obviously only half as much work, so save your time and energy. [ed. note: markg last edited this post 12 years, 9 months ago.]
                  Content Creator and Copywriter