Add something like this to the functions file:
function current_tag($tags) {
global $wp_query;
$cid = $wp_query->query_vars['cat'];
foreach($tags as $tag) {
// match tagid to $cid
}
}
add_filter( 'get_the_tags', 'current_tag');
This won’t work by itself, but it will be a good start for getting the right information to the right place.
Related Posts:
- How to show tags in my tumblr theme?
- How to add sub-menu to a menu generated by wp_nav_menu by using plugin
- Get list of registered or enqued styles? looking for filters or actions
- How to apply a class to the second word in menu list item?
- wp_tag_cloud inline CSS
- When at / ( or “home”) my menu doesn’t get a current-menu-item class
- How can I remove css from a child theme?
- How do I style WordPress pages differently based on the tag used?
- Custom CSS class or ID on menu items that have a Submenu
- Dynamic sidebar nav with current page highlighting
- How to display custom style based on theme option select box
- Redirect to another page using contact form 7? [closed]
- how to hide submenus for the not active pages
- How can I add inline CSS for each image?
- Creating a second menu on Twenty Eleven aligned right from the first
- Superfish and WordPress: Active Color Problem
- Horizontal drop down category with hover effect working
- How to set different color in a select box due to selection with css
- WordPress Custom Superfish CSS Problem [closed]
- Add “sub-nav” class to a sub menu parent item
- Current Post/Page Ancestor, CSS
- Is there a CSS parent selector?
- css transition opacity fade background
- Text-decoration: none not working
- How to center HTML5 Videos?
- What is the difference between visibility:hidden and display:none?
- Center a position:fixed element
- How to change the background colour’s opacity in CSS
- difference between css height : 100% vs height : auto
- Add custom menu item using wp_nav_menu_items filter
- How to order posts tag by tag?
- How to modify/extend/override a core method?
- Adding style sheet to specific page
- Does the ‘nav_menu_css_class’ filter accept 2 or 3 arguments?
- WordPress CSS head info – contents, expansions?
- How to change Twenty Seventeen theme’s navigation bar location?
- Possible to include ACF text field within inline style tag?
- Is it possible to change the path of a css file that is registered through wp_enqueue_style()?
- Remove tags from the kses filter
- wp_head function causes 30px blank space [closed]
- WooCommerce change number of columns in the frontpage
- Efficient way to edit WordPress themes
- How to add an RSS logo to my blogs header?
- Highlight wp_nav_menu when category is selected
- Where Do I Find The Astra Default Font Family That All Text Elements Are Inheriting From? [closed]
- How can I use one stylesheet for multiple sub-sites on my multi-site network?
- Child theme stylesheet not always overriding “index”
- How do I apply/target CSS to a specific user role or roles?
- Why is this jquery / java script code not working in mobile / in devices?
- How can I remove the ::after CSS selector which is automaticaly appended to the_content()?
- Image getting out of container [closed]
- Clients website shows blank page [closed]
- WordPress + Bootstrap [closed]
- wp_nav_menu action/filter help
- Navigation menu not visible (contrast issue) on home page
- Full screen nav menu block with avada theme
- How can I make css inline?
- Namespacing theme CSS
- Conditionally print css style in WordPress
- WordPress is not displaying CSS file
- Change class names dynamically added to html elements by wordpress
- Add classes + taxonomy terms to wp_list_pages() output
- Styling issue with custom menus and sub menus
- Chat window hiding behind Twenty Eleven header
- return get_the_tag_list with whitespace removed
- if role is logged in then do something
- Hide Tab Titles from Tabs Block
- Hide product variations at home page
- TinyMCE on frontend style not working
- WordPress childtheme not loading any CSS/SCSS
- Why can’t blocks be hidden with jQuery?
- H2 On Blog/Article Page Gets Assigned a Class
- Reload page with a different shortcode when a user selects from a dropdown
- Help locating old custom_css in PHP MyAdmin
- How to create a mobile menu full screen overlay using Understraps Bootstrap 4 theme
- I would like to achieve a two column checkout page
- CSS in child theme to replace !important in parent theme
- How would I add this code to a single WordPress page?
- WP theme update causes child theme CSS problems
- How to change menu hover color to white on my theme? [closed]
- Two questions about CSSing inside the menus
- Always show wordpress submenu on responsive header menu
- How to make CSS load live based on options clicked in the theme customizer?
- Which files can be replaced in a child theme?
- How do i make a sidebar background color? [closed]
- How to remove audio player styles added by mediaelement.js JavaScript?
- Do you use css reset in your child theme [closed]
- Twenty Fourteen Theme – Moving left sidebar to the right
- WordPress doesn’t respect “ver” parameter in styles [closed]
- why does WordPress custom css convert alpha to hex values?
- Keeping my Sub Menu open when hovering on its list items
- how to change the colour of this background
- Can I upload my HTML/CSS/Javascript game onto a WordPress page?
- How to add css to wp_head depending on the user role?
- can i custom rendered content from API?
- How to include Elementor CSS in custom php file [closed]
- How to add CSS to WordPress
- How to add arbitrary custom CSS to a WordPress Block Theme using Site Editor?
- Wrap post titles containing slashes on narrow viewports
- Import css file from node_modules using @wordpress/scripts