If the only issue you want to correct is the output of single_tag_title
, you can correct the value via a filter by grabbing the tag query var directly:
function wpa90852_fix_tag_title(){
$tag = get_term_by( 'slug', get_query_var('tag'), 'post_tag' );
return $tag->name;
}
add_filter( 'single_tag_title', 'wpa90852_fix_tag_title' );
Related Posts:
- How to show in search results posts with a particular tag in a particular category?
- Get rid of WordPress category, tag and author archives?
- Get all categories and posts in those categories
- Combine two taxonomies in a hierarchical tree
- How to get posts from two categories with WP_Query?
- Exclude categories from search query
- How to add the category ID to admin page
- ajax category filter
- How can I reduce the number of database query calls for this custom homepage?
- WP_Query not looking at child category
- Get page content by category or tag
- How to create a widgetized sidebar for every category dynamically?
- Excluding posts from a category but only if they’re not in multiple categories
- What could be causing my wp_query pagination to break?
- Custom query with category exclusion and post-meta “whitelist”
- Only show category to certain user levels without plugin
- List Categories of the Parent Category of the Current Category
- Exclude most recent posts from specific category in wp_query()
- Display one latest post from multiple categories
- How to Check if a Child Category is Being Queried
- wp_list_categories, Add class to all list items with children
- Remove “Parent” Selection When Adding/Editing Categories?
- Check is category parent or not from its ID
- How to run WP_Query to retrieve attachments to posts only from a particular category?
- How to query posts from specific authors and categories using WP_query?
- How can I get an tag to wrap each ancestor that gets outputted in this condition?
- Custom WP_Query for current category (in category.php)?
- If category is in parent category?
- If in category to be inside of a function
- List Posts by Category for a Non-Zero, Non-NULL Custom Field Value?
- getting content from main domain to sub-domain using category and WP_Query
- Rename Default Category (Uncategorized) Via a Function
- WP_Query() returns null when results exist!
- Ignoring a category in WP_Query still shows the links in next_post_link()?
- 3 Columns, 3 Categories, One Archive, and Pagination
- Check child/parent categories if exists
- Getting URL of archive (category) page
- How to show only one category in breadcrumb navigation
- How to query post like normal search would do. within search.php page
- Category applied to pages, creates multiple breadcrumb entries after a search query (On the translated site)
- Multiple Loops on category.php with pagination on last loop
- How to get latest posts from each category in regular order
- change recent posts based on category
- How to remove specific categories from posts?
- Add tag parameter to category.php
- Redirect to another page using contact form 7? [closed]
- Set colors depending on category
- Random Featured Image Based on Category
- add slug beside name in Admin Category Checklists
- Display posts from a category
- Pagination on category.php and tag.php not working
- category__not_in and id values from variable
- Change div background acording to the selected category
- Use premade array as categories in wp_query?
- How to load a script code only in posts?
- Post not populating for custom post type based on category selection
- How to use wp_list_categories with plugin category?
- WP_Query – using category__and when one of the categories is 0
- More efficient way to list posts by category [duplicate]
- Adding a block with query in homepage
- Query posts by views on category page
- I need to exclude from a query a category and a few custom taxonomies
- Show multiple categories in query using redux framework variable
- Are term_taxonomy_id and term_id the same? [duplicate]
- Return category posts with WP_Query
- Using in ‘category_name’ in ‘$query->set();’?
- multiple values in an array for category__and does not work with WP_Query
- Custom Page Template Category loop not functioning correctly
- Redirect depending on category chosen
- How to add icon over specific thumb
- How to load several hierarchical categories from functions.php
- Posts of specific category on page and excluded from index.htm
- new WP_Query issues
- How can I use AJAX with check-box categories?
- Change Default Content when Creating a Post based on Previous Category Choice
- Select posts that match multiple category names, must match all categories listed
- How to add a custom thumbnail size for a specific category?
- the_category() doesn’t working in wp_query loop
- How to display the 5 latest post titles but allow only 1 in there of a specific category
- create function to call category name and slug
- Different size video display for category page (smaller) & detail page (larger)
- Code to display category-specific single.php is overriding normal single.php, too
- Unable to get all tags from specific categories
- foreach,having wp_query inside, breaks after showing one result
- Display related posts with same category or same tag return blank
- $args Orderby The number
- Querying Multiple Categories With Different Offsets
- WordPress Numeric Pagination with Query String [duplicate]
- Function to list posts from current post’s category fails in WP 3.8
- Printing direct descendants of a category with WP_Query
- Custom Category Page Not Working [duplicate]
- WP_query exclude a category unless it has more than one catagory
- Multiple Categories under one URL, where ‘Front Page’ is used already
- How do i add custom post types to this query?
- Show parent-child relationship for categories in the wordpress admin
- Narrow Down a Shop Page Results Based on a Product Tag in WooCommerce
- How to retrieve posts from parent category, splitting them per children when displayed?
- Trying to WP_Query a category
- Filters do not work when there are multiple (one works)
- Excluding a category from frontpage but not from WP_Query