About the Author

author photo

Adam Trachtenberg is the Director of the LinkedIn Developer Network, where he oversees developer relations and marketing for the LinkedIn Platform. Before LinkedIn, Adam worked at eBay in platform product management and marketing. Even earlier, he co-founded Student.Com and TVGrid.com. Adam is the author of PHP Cookbook and Upgrading to PHP 5. He lives in San Francisco.

See All Posts by This Author

Link Blog and Other Blog Changes

In an attempt to add more non-technical related content to the site, I’ve updated my blog to include a “Link Blog” section. Items in the Link Blog are random links that I’ve found on the web that I either think are interesting or want to remember.

Instead of entering these links directly into WordPress, I’ve jumped onto the de.lico.is bandwagon, and am pulling in my links in via the WordPre.cio.us plug-in.

I must say, I find the whole hacking WordPress process slightly skeezy. I don’t mind editing PHP code by hand, but I don’t know how to cleanly integrate my changes with the main WordPress codebase. I’m afraid if I make too many changes it’ll be impossible to manage WordPress updates in any sensible fashion. For instance, I modified the default theme template and stylesheet, so does this mean I can never pick up new edits to those files unless I repatch them with my customizations? Or do those files never change?

Also, I’m unsure how WordPress handles time zones. Why does it ask me my offset from GMT (i.e. -7 hours) when my offset changes due to daylight savings time? How does it adjust for DST? Does it adjust for DST? Wouldn’t it be better to ask for my time zone?

In unrelated blog news, I found a WP feature to clean up the the URL structure. (Thanks to mod_rewrite for those who care about such things.) Hopefully, this won’t break anything, but it does seem a better way to do this, so I’m giving it a whirl.

As always, feedback is welcome.

There Are 2 Responses So Far. »

  1. Any changes you make to the stylesheet and template files can be completely independent of archives. WordPress uses themes, it comes with two default ones. Just copy one of those (probably default) to a new directory and change the name in the stylesheet and you have your own theme which is completely preserved during upgrades. Even though a ton of things have changed, we’ve maintained backward compatibility for templates going to versions almost two years back, so the chances are very good your customizations will work for a very long time.

  2. Cool. Thanks for the tip.

    Does this mean that the default template files also don’t change? I don’t want to miss some new feature that gets folded into updated templates because I’m not picking them up.

    I’ve also been poking around the Codex. I think I need to spend more time exploring that and reading the WP source. That will give me a better idea of how things work.

Post a Response