We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28033
    • 925 Posts
    I’m having some issues with Ditto as far as outputting the news for my site, plus I could use the trackback/etc. features in Wordpress.

    I could copy the HTML code, but if I update, I would have to backport the changes over. Is it possible to call MODx from inside Wordpress and "grab" a chunk containing part of the template (my templates are comprised of 4-5 HTML chunks)?
      My Snippets
      -> PopUpChunk v1.0
      • 9130
      • 171 Posts
      I did something similar on zibaba, its still a bit raw as I have to finish touching up the blog design but you get the idea.

      The way its done:
      - In MODx I created chunks  for each part of the template design. For each chunk I created a separate document in MODx containing only that chunk.
      - Integrated MODxAPI with the wordpress installation (I had to add it in the main wordpress index.php file).
      - In the wordpress template I used MODxAPI  to render the chunks/documents in the appropriate places.

      It should be possible to render the html straight from chunks without putting them into documents but I could not get it to work.