worklog

September 1, 2006

Fixing broken wordpress

Filed under: work solutions, open source, software development — Tom @ 11:49 am

Sometimes good things are broken…

Had to fix the contents of template-functions-post.php, when iterating through pages it was outputting an extra <li tag. wrapped around an <ul> some stuff </ul> without a parent <ul element. This was in the function wp_list_pages call.

That was the only fault of wordpress. The template however… wow, it was kind of broken. I didn’t notice until I noticed that I had two of the cat backgrounds showing up and couldn’t figure out why - turned out to be multiple div closings when there weren’t divs and then the misuse of the id attribute - naming multiple things for the same id. Moral of the story? 1) Validate your pages, 2) Understand looping - it seems that sometimes people don’t know when or where to stop

4 Responses to “Fixing broken wordpress”

  1. segedy Says:

    while you’re fixing things, you might adjust your theme to produce a working RSS link. As of now, it’s doing that annoying WP thing of putting “feed:” before the URL.

  2. segedy Says:

    Oh- one more thing. Your theme says “no responses to “, even with my comment printed directly below.

    Just thought you’d like to know ;)

  3. Tom Says:

    Says 2 responses to me, you browser must be Windoze!

  4. Eric Says:

    euh tom, i also see the same as segedy allready mentioned…