Yay, a Search Box

It is really easy to get basic search functionality running in WordPress. I had removed the search form when designing this theme and just never got around to putting the search form back in. It would be fun to tuck a hidable search box in between sidebar or header elements somewhere, in the style of Jeff Minard and others. Maybe some day, but that will probably wait for a possible total theme redesign within the next year. Also, page navigation (as in “previous 10/next 10”) will be available soon, once I get it to look good. Until then, older posts aren’t browsable except through category archives.

Also, I installed a new plugin today: Official Comments. A very simple plugin adding a couple of functions that let you check if a registered user (i.e. me) posted a comment rather than just a visitor. This makes it easy to give the author’s comments a special format. The plugin does not handle any comments already in the system; after running one simple database query I had the old comments up to spec. Here is the code:

  1. UPDATE wp_comments
  2. SET user_id = 1
  3. WHERE user_id = 0 AND ...

The ... is some criteria that will match only the comments you have posted so far. I used comment_author_url LIKE 'http://www.mertsock.com/%' — meaning to match comments whose author’s web site begins with my web site’s address.

Leave a Reply

You must be logged in to post a comment.