Thematic PHP constants

With Thematic 0.9.7.7 there are a couple of changes made to the way it works. One of those changes was the inclusion of a few constants, that based on their value lets you chose whether you want the default WordPress functionality or the more powerful (and complex) Thematic functionality.

I’m talking here about whether you want to make use of the following:

  • Thematic body class
  • Thematic post class
  • Thematic comment form
  • Thematic feedlinks
  • Thematic’s handling of comments

These constants should be setup inside your childtheme’s functions.php file like so:

// Unleash the power of Thematic's dynamic classes
// 
 define('THEMATIC_COMPATIBLE_BODY_CLASS', true);
 define('THEMATIC_COMPATIBLE_POST_CLASS', true);
 
// Unleash the power of Thematic's comment form
//
 define('THEMATIC_COMPATIBLE_COMMENT_FORM', true);
 
// Unleash the power of Thematic's feed link functions
//
 define('THEMATIC_COMPATIBLE_FEEDLINKS', true);
 
// Unleash the power of Thematic's comment handling
//
 define('THEMATIC_COMPATIBLE_COMMENT_HANDLING', true);

Hope someone finds these things useful.

All Child Themes got updated

While a bit late, we finally managed to get all Child Themes that are free for download updated to work with the latest Thematic (# Version: 0.9.7.7).

Early Morning, Street and Byty now make use of the WordPress 3.0 menu system, while Commune now makes use of the Featured thumbnail image that comes with WordPress (no more category images that weren’t working anyway) and we updated the menu to work with wp_nav_menu just like the rest of the themes.

We have plans for some new Child Themes in the near future so please stay tuned.

WordPress user registration template and custom user profile fields

UPDATE

This tutorial, while providing a good introduction to the concept, hasn’t been updated since it was written. The code from this tutorial has been removed due to bad formatting, however the download link still works and contains all code inside functions.php and the template files.

To this end we’ve written a free plugin that let’s you add all these front-end forms through the easy use of shortcodes: Profile Builder

I’ve been playing a lot lately with the user registration template (I’ve used it as a great starting point) from Justin Tadlock’s ThemeHybrid and extended it to support custom user profiles.

Unfortunately, user management in WordPress isn’t the sharpest tool in the shed. You have a lot of functionality for the users in the backend, but if you want to do extend that functionality to the front-end you’re in for a rough time.

There are some really nice tutorials that can help you add custom user profile fields in the backend, but if you try to do it to the frontend through a custom page template you’ll find your self validating a lot of fields and there’s even a twist to the entire process that makes things interesting.

Read more

Thematic Tabbed Widgets

Tabbed widget areas for Thematic

Tabbed widgets for WordPress themes have been around since WordPress it self. They are a perfect way to save on vertical space and add a bit of interaction with the users.

There are two classic ways of implementing the tabbed widgets.

  • Creating a hard coded widget and using the jQuery Cycle plugin. This means you can’t easily modify the content of the tabs unless you open the widget file.
  • Using a tabbed widget plugin. While this is ok for some users it just ads a lot extra code that doesn’t justify the end.

Luckily there is a optimized way of doing things. Write a bit of javascript that converts any default thematic widget area into a tabbed widget area. The title of the widgets placed in you widget area will automatically become the widget tabs.

Read more

Exclude posts from WordPress Navigation in Thematic

Let’s say you have a certain category that you want to be displayed some place other than on your main blog page. No big deal, you just exclude your special category from the main index loop.

Now, you’re probably also want to make some changes to the single post navigation, and make it so that single posts in your special category won’t get posts from any other category in their navigation links. And also, chances are you’ll want to exclude posts from your special category from the navigation links of posts in all other categories.

In other words, in the navigation links of single posts from your special category you’ll only get posts from that category, and in the navigation links of posts from all other categories, you’ll get posts from all categories except your special category. Two separate navigations.

Read more

Create an “About the author” area for Thematic

author_page

By default, Thematic comes with a simple and useful representation for the Author Archives template. While this might be enough for the majority of users, there are times when we need more detailed information about the author.

This is particularly useful on multi-author blogs, where readers might want to read more posts from a particular writer!

The scope of this tutorial is composed of two parts:

  1. Listing the author’s name, biographical info, gravatar picture and website inside the post body. ( Demo )
  2. Creating an author archive page with the same info as above, plus we’ll list the author’s posts in a different way (Thematic already has this functionality implemented, but we’ll do some changes to the styling and the way the posts are displayed). (Demo)

Read more

Early Morning Child Theme

This elegant WordPress theme was inspired by the colors of the early morning as I see them from my window. It’s light, elegant and pleasantly surprising.

This theme doesn’t scream at you, instead it takes a step back and lets the user read. Please don’t spoil it by putting ads on it!

Early Morning - A refreshing child theme for Thematic

Early Morning – A refreshing child theme for Thematic

Read more

Add “Featured Posts” to your Thematic child theme

Featured Posts for Thematic

Featured Posts for Thematic

Featured posts are common in WordPress magazine themes. They let you promote hot topics and bring your best articles right in front of your users.

First thing we need to do is create a thematic child theme. This way we won’t make direct changes to Thematic.

The featured posts will be inserted on the home page before the rest of the articles. We’ll display the latest 3 posts which are tagged ‘featured’.

preview thematic child theme

Read more