To point you in the right direction:
In my wordpress theme I added this to the functions.php file:
function get_modx_content($url) {
$ch = curl_init();
curl_setopt ($ch, CURLOPT_URL, $url);
curl_setopt ($ch, CURLOPT_HEADER, 0);
ob_start();
curl_exec ($ch);
curl_close ($ch);
$string = ob_get_contents();
ob_end_clean();
echo $string;
}
Then in the index.php file added the css & js files from MODx e.g.
$base_url = 'http://www.modx-domain.com/';
<link rel="stylesheet" type="text/css" href="<?php echo $base_url; ?>assets/templates/menu.css" />
<script type="text/javascript" src="<?php echo $base_url; ?>assets/js/jquery.min.js"></script>
In the index.php file where I needed the menu (a MODx page containing a Wayfinder call) or other content from MODx I added :
<?php get_modx_content(''.$base_url.'wp_menu.html'); ?>
This is the other
MODx/Wordpress site I did, it only uses the MODx menu & footer.