Title: WordPress with codeigniter
Last modified: August 30, 2016

---

# WordPress with codeigniter

 *  [joe.klovance](https://wordpress.org/support/users/joeklovance/)
 * (@joeklovance)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/wordpress-with-codeigniter/)
 * I have Codeigniter integrated with WordPress in that I can render Codeigniter
   pages within the WordPress shell. I used the method in this link; [https://rivers-media.com/wordpress-and-codeigniter-together-at-last/](https://rivers-media.com/wordpress-and-codeigniter-together-at-last/)
 * My problem now is that no WordPress pages render. All I get is a blank page. 
   I was thinking that I could create a Codeigniter controller that would render
   a WordPress page. All I would need is the call that, given a page ID, would render
   the page. Does anyone know of such a render call?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/wordpress-with-codeigniter/#post-6758739)
 * Because page content is generated by theme templates, there is no one function
   you can call to render a page. I would look more closely at why WP is not rendering
   its own pages. Do you have `WP_DEBUG` defined as `true`? Maybe that blank page
   is due to a PHP error, turning on debug will tell you what that error is ( or
   check your error logs ).
 *  Thread Starter [joe.klovance](https://wordpress.org/support/users/joeklovance/)
 * (@joeklovance)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/wordpress-with-codeigniter/#post-6758773)
 * Thank you so much that helped a lot. Now I am getting the following error.
    WARNING:
   STREAM_SOCKET_CLIENT(): UNABLE TO CONNECT TO TCP://127.0.0.1:8180 (CONNECTION
   REFUSED) IN /MEDIA/SF_CONFMAN2/WORDPRESS/WP-INCLUDES/CLASS-HTTP.PHP ON LINE 1021.
   I hope it is just a .htaccess bug.
 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/wordpress-with-codeigniter/#post-6758819)
 * I think it’s stranger than .htaccess. Something was trying to connect to the 
   same server via TCP/HTTP on port 8180 and it was refused. AFAIK 8180 is unusual.
   The section of code on line 1021 relates to opening an SSL connection, which 
   should normally be on port 443. At least on WP v4.3.1 – which version are you
   running?
 * Is this site running on localhost? SSL on localhost is a bit odd unless it was
   specifically invoked.
 * Until you get this figured out, eliminate any distractions. Disable all plugins
   and run WP with one of the default themes like twentyfifteen. If applicable, 
   do something similar with CI.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘WordPress with codeigniter’ is closed to new replies.

## Tags

 * [CodeIgniter](https://wordpress.org/support/topic-tag/codeigniter/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 3 replies
 * 2 participants
 * Last reply from: [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/wordpress-with-codeigniter/#post-6758819)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
