CodeIgniter Forums
Wordpress uses CI_cms header... - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Wordpress uses CI_cms header... (/showthread.php?tid=58718)



Wordpress uses CI_cms header... - El Forum - 07-11-2013

[eluser]bindaden[/eluser]
Hello,

I have a CI Cms and a WP in a sub like http://mydomain.com/blog. And I want to use Header and Footer of CI cms for WP. I ve tried to search for some ways but none works so I came up here for help. Can anyone tell me how to do it?

Thanks,
Bin


Wordpress uses CI_cms header... - El Forum - 07-12-2013

[eluser]Ckirk[/eluser]
I'm pretty sure you can't do this.


Wordpress uses CI_cms header... - El Forum - 07-12-2013

[eluser]CroNiX[/eluser]
I have a CI controller that outputs the header and footer, and then have wordpress just file_get_contents('http://mysite.com/get/header');, etc.

Depending on how simple your header/footer are, you could have the cms save them as cache files and then include() them in wp. Mine are dynamically generated depending on the access level of the person logged in so that doesn't work for me.

I made it basically so that WP uses the same theme as the rest of the site and only one place to update it.