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?
- Can’t custom taxonomies have same terms (slugs) as categories?
- How do the ‘tag’ and ‘category’ (default) taxonomies do ‘save_post’ action?
- 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?
- Sort posts by tags in category pages
- How to search for categories and/or tags?
- 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
- 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?
- Display only deepest category on a single post?
- Exclude most recent posts from specific category in wp_query()
- Root level category, tag, author and archive pages to work
- Create single.php for specific category by category id
- is_archive() content being shown instead of is_category()
- Remove Categories and Tags from Admin Dashboard
- 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
- Apply custom category template to subcategories
- Help with multiple dropdown tags search
- Hide tag and category boxes from the post editor
- Retrieve all posts within tag OR category?
- How to find the number of Tags a post has?
- Categories: A Greenhorn Question on Strategy (Not Code)
- How to customize tag and category post listings to show introductory content?
- Exclude category from Tag Template
- Need Category RSS Feed that shows all posts
- Warning: sizeof (): Parameter must be an array or an object that implements Countable, On products pages
- Making a tourism information website [closed]
- How get permalink for the current category or tag?
- Changing permalink from /postname/ to category/postname/
- Highlight wp_nav_menu when category is selected
- 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
- Updating category template to change how subcategories display
- How can I get categories IDs if multiple categories requested via URI?
- Category template to show different categories based on parent
- Sub category templates
- Custom taxonomy template for categories
- Limit number of posts on a custom category template – breaking pagination
- How to Remove a Title from All Category and Tags Page?
- How can I display the number of post associated to a category in Twig/Timber WordPress? [closed]
- How can I display tags as categories?
- How to get an array with all categories and corresponding names?
- Is it possible to have a template that works on multiple categories where the link address contains the specific category?
- Echo text using is_tag
- How to use wp_list_categories with plugin category?
- Add Date & Author Meta to Category Archive Page
- Use blog as base for tags and categories
- How to store category and tags separatly on wordpress?
- Category link redirect to custom template page instead of index.php?
- I would like to feature a tip on the homepage
- Setting selected term_id with wp_dropdown_categories?
- post_class remove tag- or category- from slug
- Pretty URLs with Categories and Tags
- Autolinking keywords in text with tags
- Different header for each category
- Maintaining a separate posts page for certain categories and don’t show those on home page
- Custom post type archive category page results in 404
- What is the best way to add an advanced / intermediate / beginner tag to a post
- Include home page template in specific category template
- Display all categories but only if they have posts in them that have a specific tag assigned
- Include last post date in get_categories loop
- How to add tags under categories
- Add Post Categories in Post Tags Field Programmatically
- How do I get tags linking to proper pages (/tag/sample-tag -> pages with that tag)
- How to show entries related to main category
- Automatically create tags and merge with categories
- How to assign Categories and tags inside the TinyMCE Editor for each Image?
- Re-coding category-template.php to go to custom URL
- Search by tag, category and author without plugin
- Adding a category view to a page
- Limit Category/Tag Dropdown To blog_id in Multisite Install With Global Categories/Tags
- Tag Menu items based on their categories
- How to add an “All” category to the tag cloud?
- Hide category name using mod_rewrite
- Display Taxonomies in loop with template args
- Show posts from all categories
- Unable to get all tags from specific categories
- Most efficient way to have 1 template for parent, 1 template for child categories?
- Category Templates for Post Types not Working
- Secondary loop cuts off at 10 posts?
- htaccess redirect for all categories converted to tags now showing 404
- altering theme – content generated by PAGES not PORTFOLIO
- Search tag within category
- How do I get a single page navigation depending on the previous page?
- Add 1 category more to If_in_category statement
- Template files not working for archives and categories