4 Comments

  1. SeanJA June 23, 2008 @ 1:09 pm

    So, where are these models located then?

  2. Gavin Blair June 23, 2008 @ 9:05 pm

    I’m still working on it… I’m a busy guy :P

  3. SeanJA June 24, 2008 @ 6:03 pm

    Its called a beta (or Alpha) release :P

  4. Gavin Blair June 25, 2008 @ 12:43 am

    It’s not even that far yet. I have most functions defined, and a couple made, but thats it. It’s on hold until I figure out a direction for Busby.

Code Igniter and Wordpress

Code Igniter, Wordpress

For those who don’t know, Code Igniter is an open source PHP framework. And of course, Wordpress is blogging software. When you create a Wordpress theme, you have to put it into the /wp-content/themes/folder. To list the blog’s categories, you use the function wp_list_categories(), which puts the categories in an unordered list. The function takes some arguments for formatting, but there is very little you can do with wp_list_categories(). For example, you can’t display all categories that contain a certain string (in title or description). Sometimes you just want more control over how things are displayed, and Wordpress’s method of displaying themes just doesn’t give it to you.

That is why I am using a Code Igniter install as my blog theme. I have created several Code Igniter Wordpress Models that allow you to pull exactly what you want from a Wordpress database. This way, you can use Wordpress as a blog administration tool, and Code Igniter can show your stuff, how you want it.

The Code Igniter install does not go into the /wp-content/themes/ folder - it goes in your site root. Just throw my CI+WP models into the /system/application/models/ folder, and you’re good to go!

Gavin Blair @ May 11, 2008

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>