We were able to get custom category and tag base names using:
get_option('category_base', 'Categories')
get_option('tag_base', 'Tags')
We wrapped these functions in ucwords() in order to capitalize the base name and replaced “_” with “”:
ucwords(str_replace('_',' ',get_option('category_base', 'Categories'))
ucwords(str_replace('_',' ',get_option('tag_base', 'Tags'))
Finally we wrapped all this with the code for localization and added the single cat/tag title:
printf( __( ucwords(str_replace('_',' ',get_option('tag_base', 'Tags'))).' » %s', '2010-translucence' ), '<span>' . single_tag_title( '', false ) . '</span>' );
Related Posts:
- Are Category or Tag Archive Pages Possible?
- Different templates for different category tags
- Own Custom Tags/Category page ( posts)
- Is There a Difference Between Taxonomies and Categories?
- What is the difference between a “tag” and a “category”?
- Can’t custom taxonomies have same terms (slugs) as categories?
- On the category page, get the category object
- How to display non-hierarchical taxonomy as terms with checkboxes?
- How do the ‘tag’ and ‘category’ (default) taxonomies do ‘save_post’ action?
- Control term order on a per-post basis
- get all tags from category
- 404 Error On Category and Tags Pages
- Checklist of selected categories
- Preventing index.php?category_name=something from redirecting
- Make all subcategories use the template of its category parent?
- Rewrite URL with category and tag combined using WP_Rewrite
- How to tax query X number of posts related by tag first, then by category if not enough in tag-related
- Use tag interface for hierarchical taxonomy?
- Sort posts by tags in category pages
- How to search for categories and/or tags?
- Using URL parameters, list posts from category and custom taxonomy
- How to get the url to tag & category base set by the user?
- Filter categories using tags
- Sticky posts on home page, search, tag and archives without plugin
- Different templates for parent and children categories/taxonomies
- Are Categories, Tags and Custom Taxonomies any different in regards to SEO?
- Category and tag with same name
- Create subdomains for tags and categories
- In the tag archive – display count of posts for each category they belong to
- Is it possible to disable certain user roles from creating tags?
- Automated adding of one tag to all the posts in a category
- Moving Categories submenu to Media, but still opens Posts menu
- Display only deepest category on a single post?
- How do I set a specific template for sub-categories?
- Exclude most recent posts from specific category in wp_query()
- When using get_categories or similar, is it possible to filter results that contain certain Tags as well?
- Exclude a category from the filed under list only on some templates
- How to totally get rid of Category in my blog?
- Root level category, tag, author and archive pages to work
- Create single.php for specific category by category id
- Showing all the posts in one page?
- Categories and Tags returning 404 on the sidebar when using ugly permalinks
- Deleting All tags except categories Wp database
- Is it possible to put tags and category information in the post as text?
- Script to duplicate categories as tags
- is_archive() content being shown instead of is_category()
- Search by word, category, tag, author
- Remove Categories and Tags from Admin Dashboard
- How to override Category rendering mechanism
- How to control template resolution if both Author and Category filter in place?
- How to filter archives both by category and tag?
- Which php file lists all the post of a category
- Remove Archive Headline and Archive Intro Text fields on category and tag archive pages in WordPress Admin with Genesis framework
- display most popular tags of category?
- Get tags specific category
- Can paginate_links() be customized for a specific category or tag?
- Apply custom category template to subcategories
- Any way to assign Post Categories and Tags to Links?
- Category archive page – loop through posts of certain tag (with pagination) – pre_get_posts
- Category vs Tag vs Table
- Help with multiple dropdown tags search
- Custom WP_Query for current category (in category.php)?
- Hide tag and category boxes from the post editor
- Custom page for WooCommerce’s /product-category/
- Retrieve all posts within tag OR category?
- How to find the number of Tags a post has?
- Code to pull in a PHP file named after the category ID
- How to not treat categories as tags in feeds
- Categories: A Greenhorn Question on Strategy (Not Code)
- How to customize tag and category post listings to show introductory content?
- Disable Woocommerce product tags display by alphabetical order
- Exclude category from Tag Template
- How to make a Thumbnails Mosaic
- Possible to make a subdirectory that loops through a single category?
- Need Category RSS Feed that shows all posts
- WooCommerce IF statements not working
- Editing Category Pages
- Warning: sizeof (): Parameter must be an array or an object that implements Countable, On products pages
- How can I duplicate categories and tags?
- How to run select query of post with category and tags for API?
- Making a tourism information website [closed]
- Random post + categories + tags
- Set a them for all subset of category
- Search Posts / Pages with multiple options?
- How get permalink for the current category or tag?
- Display tags from specific category in select fields
- Offline WordPress Application
- Changing permalink from /postname/ to category/postname/
- How to display only posts assigned to a particular, isolated, subcategory
- Find out which user created a category or tag?
- RSS/XML of all Categories and/or Tags
- Highlight wp_nav_menu when category is selected
- Get Tags specific to Category using WooCommerce plugin
- Archive.php filtered by pre-determined category
- one category template for multiple categories
- Exclude a category from the_category in the single post page
- How to make 2 tag feeds show up on 1 page?
- Site search needs to find posts for category topic AND Tag or keyword thats not in the post
- Pagination is not working properly in Product Category/Tag pages
- Get link which associated with a specific category and tag