Use Constants To Integrate WordPress In Other CMS

Sometimes you need to integrate WordPress into another CMS, like Typo3, Drupal or whatever is out there. The blog should have the same design, use same images and Javascript or implement existing links. Mostly you run the WordPress blog on a subdomain like blog.example.com and the data lies on example.com/css/ and so on.

The easiest solution in such cases is to use constants, to access the existing files. We define them in functions.php of the theme folder:


In your theme you use the constants like this:


foo

Easy, right? Mostly a little stylesheet is enough for special WordPress adjustments, which you load after the stylesheets of the CMS.


Posted

in

by

Comments

One response to “Use Constants To Integrate WordPress In Other CMS”

  1. Jauhari Avatar

    I still confused how to Implemented this method 🙁