Sep
13
13
Thematic: Adding Thumbnail Support to Categories
This code will add thumbnail support to your categories when using a Thematic child theme. Your front page posts will not be affected.

When using Thematic it is very important that you do not touch the core files (core files meaning index.php, header.php, footer.php..). Therefore, most of our coding additions are done through the functions.php file. Go ahead and open your functions.php file. Somewhere between <?php and ?> place the following code:
// Thumbnail Support for Categories
add_theme_support('post-thumbnails');
function my_post_title($posttitle) {
if (is_single() || is_page()) {
$posttitle = '<h1 class="entry-title">' . get_the_title() . "</h1>\n";
} elseif (is_404()) {
$posttitle = '<h1 class="entry-title">' . __('Not Found', 'thematic') . "</h1>\n";
} elseif (is_category()) {
$posttitle = '<h2 class="entry-title">';
$posttitle .= '<a class="alignleft" href="'.get_permalink().'">'.get_the_post_thumbnail(NULL, 'thumbnail').'</a>';
$posttitle .= '<a href="';
$posttitle .= get_permalink();
$posttitle .= '" title="';
$posttitle .= __('Permalink to ', 'thematic') . the_title_attribute('echo=0');
$posttitle .= '" rel="bookmark">';
$posttitle .= get_the_title();
$posttitle .= "</a></h2>\n";
} else {
$posttitle = '<h2 class="entry-title"><a href="';
$posttitle .= get_permalink();
$posttitle .= '" title="';
$posttitle .= __('Permalink to ', 'thematic') . the_title_attribute('echo=0');
$posttitle .= '" rel="bookmark">';
$posttitle .= get_the_title();
$posttitle .= "</a></h2>\n";
}
return $posttitle;
}
add_filter('thematic_postheader_posttitle', 'my_post_title');
** Make sure you have a featured image set. Post thumbnails will not work without it.
I want to give a huge thank you to a member from the WordPress forums that goes by the name ‘asinglehumanbeing’. This person gave me the code to make this work.
Watch me do it:
Leave a comment
I’m looking for (…) themes
WordPress Jobs
- Luxury Web Design by davidusername May 20, 2012I'm would like help building a luxury real estate website. It needs to be very attractive. I would like to talk to candidates on Skype if possible for the interview. Upon discussion, I will hire the candidate on the freelancers platform... (Budget: $250-$750 USD, Jobs: Graphic Design, HTML, Javascript, Website Design, Wordpress) […]
- Simple Press Forum Installation by DigitalViLounge May 20, 2012I would like a Simple Press forum installed on my Wordpress site. I tried doing it by myself, but there were errors on the profile page. Every time a user would click on a link in their forum profile page it would redirect to the login page... (Budget: $30-$250 USD, Jobs: Forum Software, Wordpress) […]
- Wordpress Plugin : Gravity Form Modification by lkwp May 20, 2012Hi, I need somebody who is expert in Gravity Form Plugin as I require some modification. When a user creates a NEW FORM in Gravity and clicks Save Form, I would like it to automatically create a new custom post type and save this form as post... (Budget: $30-$60 USD, Jobs: Wordpress) […]
- Tutor Earth - FInd A Tutor and School Listing by Tutor1 May 20, 2012Tutor Earth is looking for a smooth online website for Tutors, Schools, Parents, businesses and students and Parents to list their requirement and Schools to advertise their school profile and Job posting as well... (Budget: $30-$250 USD, Jobs: CSS, HTML, PHP, Wordpress) […]
- wordpress plugin with REST queries and javascript highchart by lenzai May 20, 2012We need to build a wordpress plugin. 1. wordpress plugin should support wordpress permission so that admin can configure access to plugin via wordpress user administration and permissions. It should... (Budget: $250-$750 USD, Jobs: AJAX, Javascript, PHP, Wordpress) […]
- Wordpress Theme from PSD by oamazi May 20, 2012Greetings, I have designed a website in Photoshop, I would like someone to slice it and convert it to HTML as a Wordpress Theme and then configure the required plugins for wordpress to work with the design... (Budget: $30-$250 USD, Jobs: CSS, HTML, Photoshop, PHP, Wordpress) […]
- Add Functionality to WP Plugin by marketingzone May 20, 2012I recently purchased a content unlocker for a client called WP Lockz. However some functionality is missing that they require. Therefore I need the below functionality added to the current WP LockZ Plugin... (Budget: $30-$250 USD, Jobs: Graphic Design, HTML, PHP, Website Design, Wordpress) […]
- design website by redstaing May 20, 2012need someone who can give me the ultimate design someting that looks goodt soft and light need to chance the theme named geoplaces (Budget: $30 USD, Jobs: Graphic Design, Photoshop, Website Design, Wordpress) […]
- Wordpress CMS Design & Temple needed by jacobbp May 20, 2012I'm looking for a attractive Wordpress design for a CMS website. Static pages like this: Home About Us Gallery Contact Us Testimonial (optional) I'm looking for a this nice template so I can... (Budget: £20-£250 GBP, Jobs: Graphic Design, HTML, PHP, Website Design, Wordpress) […]
- Email Capture For Wordpress Photo Gallery by inthedark May 20, 2012I'm looking for a developer to integrate a compulsory email capture system before viewing my wordpress galleries (i use nextgen). This capture needs to be quick, look great and push the email address into... (Budget: $30-$250 AUD, Jobs: CSS, HTML, PHP, Wordpress) […]








