admin管理员组

文章数量:1310092

Is it possible to use WordPress as the CMS but all of contents will be displayed using CodeIgniter?

What I want to know also if I can use the WordPress functions by simply including this wp-blog-header.php in the CodeIgniter.

Do you guys think this idea will work?

Probably one of the function I really need is apply_filters()

Is it possible to use WordPress as the CMS but all of contents will be displayed using CodeIgniter?

What I want to know also if I can use the WordPress functions by simply including this wp-blog-header.php in the CodeIgniter.

Do you guys think this idea will work?

Probably one of the function I really need is apply_filters()

Share Improve this question edited Jul 20, 2013 at 13:31 s_ha_dum 65.6k13 gold badges84 silver badges174 bronze badges asked Jul 20, 2013 at 2:23 rolzrolz 431 silver badge4 bronze badges 2
  • fuxia, why my comment is not an answer? Wordpress is a cms but it provides built-in REST API which you can call from any framework or language. – Ikalazety Commented Jan 7, 2021 at 13:19
  • @Ikalazety do not post replies as solutions. Unless what you wrote is the solution to the question, it should not go in the answer box. – Tom J Nowell Commented Jan 7, 2021 at 14:55
Add a comment  | 

2 Answers 2

Reset to default 2

You can install CI as a theme or a directory in a theme. Then load the files in the theme’s functions.php and create the output with CI. You can use all the WordPress code here.

As far as I’m aware there will be no conflicts between CodeIgniter’s reserved names and WordPress.

But I am not so sure about the usefulness of this combination. You will not need most of CI’s code, because WordPress handles that already.

To agree with the answer above, I think it would defeat the purpose of using WordPress as A CMS. CodeIgniter is a framework used to developed dynamic sites in PHP. It is not a CMS for displaying content. WordPress is better built for such a task. You could however build out your site using CodeIgniter.

本文标签: wp blog headerphpUsing wordpress and codeigniter in one website