HTTP/1.1 // 38.107.191.87 // // 37587 // // CCBot/1.0 (+http://www.commoncrawl.org/bot.html)

Clicktale

Extending a WordPress Site: Core Hijack

Jul
30
2008

It’s pretty easy to hijack some core WordPress code and use it to extend the functionality of your WordPress site while keeping a cohesive look and feel. Basically, this technique creates a WordPress ’shell’ that you can code inside of; utilizing all of WordPress’s functions and themes, but leaving out the blog. I use this technique to add on functionality to my WordPress sites that don’t fit within the WordPress framework, such as zip code locators and other custom database applications. You can even use this technique to build custom includes based on WordPress functions. Lets get to it…

Assumtions

First I need to tell you about how my WordPress blogs are set up. I usually set up my blogs in the root directory, and that is how this tutorial assumes you have done it as well. This means all of our coding will be going on inside of the WordPress install. Of course, your setup may be different than this, so just keep that in mind.

I’m also assuming that you’ve been good and have upgraded to WordPress 2.6. The WP developers have changed how the core code is included in WP 2.6 and this tutorial reflects that.

Set Up

To begin create a directory in your WordPress install for testing (this directory should be parallel to the wp-content folder). You can call it anything you like – I’m calling mine ‘tool’. Next, create a blank index.php file in that folder.

Go on to learn how to include the WordPress core code…


Pages: 1 2 3 4

7 Comments »

Allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
MyAvatars 0.2

Comment by Christopher Clayton
on 30 Jul 2008 at 1:28 pm #

This is GREAT!

Never knew that! i have an idea i could use this for, once its done ill come back and let you know how it went!

i like your password generator!

Cheers,
Chris

 
MyAvatars 0.2

Comment by Link Building Bible
on 01 Aug 2008 at 3:43 am #

Can you do a post about how to create your own custom Wordpress install…. with all of the settings configured how you want, plugins added (i know u still have to manually activate them) and with theme included.

I create niche sites and have a basic setup for all of them, and want it done automatically for me…. not manually doing it for each site.

Thank you very much.

MyAvatars 0.2

Comment by James Ehly
on 01 Aug 2008 at 8:16 am #

Link,

That sounds like a good idea for a post, but to get you started now, I would do it like this. Set up my install how I wanted it, then do a file and database backup. Take your sql file and figure out what records you want in your install and create update statements with those (or leave them as inserts if they are new content). This is usually kind of a lengthy process, but is a huge timesaver and it’s how I install my MODx sites. Then you can install Wordpress as normal, copy your install files over it, and update the database with your sql script.

James

 
 
MyAvatars 0.2

Comment by Stu the Adelaide SEO
on 17 Aug 2008 at 8:11 pm #

@ link building bible – how long does it take you to install and set up a wordpress blog? Ten minutes?

You can try by getting one set up the way you want it then downloading everything in the wp-content folder.

At least then you have your theme, plugins etc all sitting there for the next time you create a site.

 
MyAvatars 0.2

Comment by San Nayak
on 20 Aug 2008 at 2:00 pm #

I created a guide for installing the worpress with standard template and it seems to take at least 25-30 minutes to configure everything.

 
MyAvatars 0.2

Comment by Code Errors
on 01 Oct 2008 at 4:00 pm #

I don’t know if there is a plugin to get a keyword and description tag in the wordpress, if you guys know then let me know about it as well.

MyAvatars 0.2

Comment by James Ehly
on 01 Oct 2008 at 9:48 pm #

Sure there’s the All in One SEO Pack. Is that what you are looking for?