VanessaKing
Forum Replies Created
-
Forum: Plugins
In reply to: Problem with WP E-commerce Function wpsc_the_category_titleRESOLVED: I think I’ve finally solved this problem which, by the way, started doing the dreaded ‘Replaces the first product title with category title…’ thing!
In approximately line 1241 of theme.functions.php, in wpsc-includes, the enable page filters function:
`function wpsc_enable_page_filters( $excerpt = '' ) {
add_filter( 'the_content', 'add_to_cart_shortcode', 12 ); //Used for add_to_cart_button shortcode
add_filter( 'the_content', 'wpsc_products_page', 1 );
add_filter( 'the_content', 'wpsc_single_template',12 );
add_filter( 'archive_template','wpsc_the_category_template');
add_filter( 'the_title', 'wpsc_the_category_title',10,2 );
add_filter( 'the_content', 'wpsc_place_shopping_cart', 12 );
add_filter( 'the_content', 'wpsc_transaction_results', 12 );
add_filter( 'the_content', 'wpsc_user_log', 12 );
return $excerpt;
}wpsc_enable_page_filters();`
The line which applies to the category title, line 1246:
add_filter( 'the_title', 'wpsc_the_category_title',10,2 );I changed the priority from 10,2 to 10,1, so that line changes to:
add_filter( 'the_title', 'wpsc_the_category_title',10,1 );That solved all my troubles and I hope it can solve yours, too!
Forum: Plugins
In reply to: Problem with WP E-commerce Function wpsc_the_category_titleUPDATED: I’ve made some of the ‘fixes’ I’ve found, but now it’s doing the dreaded ‘First product named after the category’ thing.
I’d found a patch, but not sure where it’s meant to go or what it’s meant to replace (the documentation, all the way around, is negligible). Now my problem is a dozen times worse than it was and I’m still not sure how to fix it.
Forum: Fixing WordPress
In reply to: Tags Listed by Category, Need Tag Links by Category, tooActually, I think tagging the category on to the end of the initial link is all I need, thanks! I had to make one minor adjustment by moving ?cat-3 over to immediately after tag_link, but other than that it seems to be perfect (see below):
foreach ($tags as $tag) {
$content .= “tag_link?cat=3\”>$tag->tag_name“;
}I haven’t made any change to the tag template and, so far, it’s perfect! I’ll let you know if I run into any problems, but I think this is just what I need. I can customize this string for each category template and leave it off of the regular category template and I’m in business.
Thanks again!
Forum: Fixing WordPress
In reply to: Tags Listed by Category, Need Tag Links by Category, tooYes, that’s the tricky part… I’m not very experienced with PHP, as you can likely tell, but it seems that this should be a common request.
Isn’t there a way to return links limited by category in sort of the same way the list is created by category?
I’ll give your suggestion a try though, thanks very much for the response!