Oct 152009

There are several ways to integrate search function into a theme for WordPresss, usually built in a template, which is included into the theme. This is not in all cases necessary and can also be realized by using a WordPress template tag.

WordPress provides a function that allows an easy way to use the search form: get_search_form(). It’s similar to get_sidebar() or get_header() which is in use in most of the themes. The function is available since WordPress version 2.7 and is found in wp-includes/general-template.php.

Oct 152009

I wanted to create a simple directory of non-profit organizations. To do so,  I wanted to use pages for the directory, rather than posts so that I could separate the static directory listings from the dynamic blog posts. I didn’t want to have to exclude tons of categories from feedburner and the main loop.

So, I started exploring the whole family in Wordpress – grandparents, parents, and children. Translation for those not yet used to seeing Wordpress analagous to the family in My Big Fat Greek Wedding: Pages, sub-pages, and sub-sub pages

Oct 142009

In WordPress 2.9, there will be the ability to add an image to a post, as it’s been known of magazine themes. The image need not be insert into the post. With the new feature the_post_image() you can use the new feature and thus control where to display.

The two screenshots show the new post thumbnail dialog when creating a new article. Here you set the picture.

Oct 142009

Fancy words aside, a canonical URL is Google’s way of identifying a “preferred” URL for your posts to avoid duplicate content. Duplicate content is generally defined as “separate web pages with substantially the same content, which may attract a penalty from search engines.”

Oct 142009

Recently we had a client who wanted to change their Permalink structure from

Old Permalink structure: /%author%/%category%/%postname%/

to:

New Permalink structure: /%author%/%category%/%postname%/%post_id%/