 cannobbio
|
Thanx to @Mychelle for his/her post: http://getshopped.org/forums/topic/product-title-is-been-displayed-instead-of-the-category-title/
I’m using Thematic 0.9.7.8 and WPEC 3.8.3
To fix this in Thematic put this on your functions.php:
// WPSC Category title fix
function childtheme_override_postheader_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";
// This is the fix
} elseif ( 'wpsc-product' == get_post_type() && !is_single() ) {
$posttitle = '<h1 class="entry-title">' . wpsc_category_name() . "</h1>n";
} else {
$posttitle = '<h2 class="entry-title"><a href="';
$posttitle .= apply_filters('the_permalink', 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 apply_filters('thematic_postheader_posttitle',$posttitle);
}
cya
|