The WordPress Codebase

Jun 6

The WordPress Codebase

You Don’t Have To Be Pretty To Be Successful: Joseph Scott has some commentary and a lot of good links on the state of the WordPress codebase.

There are lots of good things about WP. It is fairly easy to install and from the user point of view it looks nice for the most part. But if you take a peak under the hood at the PHP code that makes WP happen, you’ll likely be very disappointed.

I share some of the concern here. There’s no good templating language, although they at least moved away from the hideous idea of “let’s stick everything in index.php.”

I posted to the WP forum a few weeks ago about an API that would let you go around the presentation deficiencies. According to the responses, there is apparently no such API. I played around with it for about 30 minutes, and had a good one going. Something like:

$wp = new Wordpress();
$posts = $wp->GetPosts('date', 'ASC', 10);
foreach($posts as $post)
{
   //Do something
}

It worked really well, and I may go back to it. The idea was that if you did this, then you could just push everything off to Smarty for presentation.

But, in the end, I share Joseph’s optimism for the project. As I wrote two years ago, projects rarely sink or swim on the perfection of the code. Successful apps (1) solve a problem, and (2) are pleasant experiences for the user. Wordpress suceeds on both levels.


Comments

by Jonathan Peterson,   June 6, 2005 7:22 PM  

I haven't even glanced at the source code yet, having just found it this weekend, but you might want to take look at lightpress, I believe, fairly similar to what you are looking for.


by ludo,   June 7, 2005 3:29 AM  

Jonathan, we are in fact doing something similar to what Deane is suggesting. We wrote a new front-end for the WP database from scratch, encapsulating methods into a separate class, using proper templates (simpler than Smarty), and moving non-core functionality to plugins.

Everybody is welcome to contribute to LightPress ofc, developers and documentation writers are both welcome (oh, and users too) :)


by 2shoes,   July 8, 2005 1:50 PM  

How would you alphabetize Wordpress posts for a category in Smarty?



Add Comment


Want to advertise on this site? Contact FM.
Laser Toner Cartridges UK laser toner, toner cartridges, hp toner, lexmark toner, samsung toner, canon, toner, epson toner, oki toner, kyocera toner, xerox toner, remanufactured toner, compatible toner
Direct TV Deals Free 4 room direct tv deals. no equipment to buy. free fast professional direct tv installation. this is the best direct tv deal available anywhere.
SEO Article Learn from the experts with our SEO article.
rope light Shopping with birddog distributing, inc., gives you access to the lowest prices, the best customer service and the quickest delivery times possible.
Laptop AC Adapter We offer genuine factory direct replacement AC adapters.
Direct TV Best satellite TV deals.
Direct TV Deals Direct TV programming deals are varied and include packages containing from 50 channels up to over 250 channels.
8mm film to DVD Retain family memories with the only frame by frame digital restoration service in the United States for your 8mm film to DVD today
Rubber Stamp Shop for custom self-inking stamps, hand stamps, address stamps, label stamps, check endorsement stamps, check deposit stamps, date stamps, pre inks, pocket stamps, ink and much more!