WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm seeing a lot of jobs on elance and vWorker for converting html to wordpress? what's the general process for doiing this? hunting and pecking through the codex? what happens when you get to some javascript or php? how long should a job like this take?

share|improve this question

One way to access WordPress core functionality outside of your WordPress directory is to use the following example;

  require( '../path-to-your-wordpress-install/wp-load.php' );


  // do your magic here...


However converting HTML to WordPress shouldn't really require you to access WordPress outside of itself. Instead you want to be porting across the clients HTML into a WordPress compatible theme.

It really is project dependent when it comes to how long it will all take. I've had projects take a couple of days to those that last several weeks.

Migrating custom Javascript/jQuery and PHP scripts is not all that difficult however you will want to consider whether or not any of the custom PHP you might be working with is accessing another database. If so, just make note of that.

In theory you should be able to port across the existing PHP code as it stands into your template/theme files, however that's not to say you won't encounter any bugs along the way.

It does pay to survey the site in depth and to ask as many questions as you possible can or which you feel are relevant to your client to uncover any potential time-sinks!

share|improve this answer

The general process is to know Wordpress first, so you know how it works, why it works the way it does, and the general UX behind the admin side.

Then, try Google for tutorials on converting html to a theme http://www.google.com/search?q=convert+html+wordpress , read the docs on theme dev http://codex.wordpress.org/Theme_Development, how to enqueue javascript correctly http://codex.wordpress.org/Function_Reference/wp_enqueue_script , and check the function reference http://codex.wordpress.org/Function_Reference

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.