How to rename ‘Tag Base’ with WPeC 3.8?

In WordPress>Settings>Permalinks there is an option at the bottom of the page to change the ‘Tag Base’.

I’ve entered ‘testtag’ in this option and saved, but my tag pages are still displaying as ‘tagged’ (eg www.example.com/tagged/tagcategory).

Read More

wpsc-functions.php in the wp-ecommerce>wpsc-core folder… on line 319 ‘tagged’ can be renamed which will change the URL’s generated by things like the tag cloud, which in part solves the problem – but when you click on and request those new URL’s it generates a 404 error.

Does anyone have any ideas please on how I can rename this.

I’m using WP 3.1 and WordPress E-commerce Plugin 3.8. I’ve got a test site on www.chainsawdr.com. An example of a tag URL can be found by clicking a link in the tag cloud.

Any tips or advice would be greatly appreciated. Thanks for reading

ChainsawDR.com

Related posts

Leave a Reply

1 comment

  1. Tags are a custom taxonomy called product_tag in WPEC 3.8+, they’re not the same taxonomy as default WordPress tags so that’s why tagbase has no effect.

    Line 315 in wpsc-core/wpsc-functions.php:

    register_taxonomy( 'product_tag', 'wpsc-product', array(
        'hierarchical' => false,
        'labels' => $labels,
        'rewrite' => array(
            'slug' => '/' . sanitize_title_with_dashes( _x( 'tagged', 'slug, part of url', 'wpsc' ) ),
            'with_front' => false )
    ) );
    

    *Edit- I somehow skipped over the part of your question where you point out the above, however, changing the slug in this file and then flushing your rewrite rules WILL change the slug, but you’re editing core files which is always bad.

    The question I suppose should then be “Is it possible to override something set elsewhere in a register_taxonomy call?”