Yes, it is possible.
<?php
$post_tags = get_the_tags();
if ($post_tags) {
foreach($post_tags as $tag) {
echo '<a href="'; echo bloginfo();
echo '/?tag=' . $tag->slug . '" class="' . $tag->slug . '">' . $tag->name . '</a>';
}
}
?>
The code is from another answer on Stack Overflow, see here for the source and more info
Related Posts:
- How to not allow users to create new tags, but allow to them to use existing ones
- Find all strings between an enclosing shortcode
- Where do I put the code snippets I found here or somewhere else on the web?
- Disable plugin / plugin action via theme
- How to remove WPML Generator Meta Tag by theme’s functions.php (override plugin function)? [closed]
- Need to create a Theme demo site that features multiple themes
- Why does including a file in theme’s functions.php not work?
- Adding New Role
- Change destination author link
- How to call a plugin function in footer.php
- Add Top-Level Menu that opens URL
- wordpress custom login successful redirect hook
- WordPress ajax call for not logged in users, doesn’t work
- Over write plugin templates
- Display All Non-Used Plugins
- Override plugin functions in functions.php
- Using has_filter with a class based plugin to check whether the plugin is active or not
- New Plugin: Post update pushes a copy as a revision
- Placement of Code in Plugin for hooking `save_post`
- ajax front-end increment views on click
- Add get_option to jquery
- Scope for PHP Variables Assigned in functions.php or a plugin
- Override the filter from plugin in child theme
- Add a plugin before main container
- Avoiding Duplicate function names in Post Loop (WP_Footer script)
- How to add class in plugin only for network site?
- How to create TEMPORARY Download links in a wordpress POST?
- Conditionally add apt. Open Graph meta data to different pages on WordPress site
- PHP Fatal error: Call to undefined function plugin_basename
- Executing my function once on a specific time
- Missing Argument
- load_plugin_textdomain error
- Adding Shortcode to Text Widget
- Does WordPress validate inputs to all functions? (such as get_user_meta and insert_user_meta)
- Using a function to change favorites listing
- How to use a class from another plugin
- WP Query. Is there a maximum size?
- Ajax : Call undefined function plugin_function() … can’t call any plugin function
- Difference and examples of esc_attr__() and esc_attr_e()
- How to over-ride a file in a plugin? [closed]
- Overwrite category head title
- execute function after one completed
- WordPress checkbox and Illegal string offset
- Undefined index: action plugin problem
- How to reset the plugins without deactivate the plugin
- plugins_url() works everywhere but wp_reqister_script()
- Replacing global wp_query
- wp_enqueue_scripts
- How to get specific string/value from an array? php [closed]
- WordPress Stock Update Programatically
- 5 PHP Fatal error: Uncaught ArgumentCountError (Cannot Find)
- Getting a ressource ID, from a WC_Order_Item_Product/Order
- How to transfer data from an additional field in the tags?
- same user role or copy the user role to be same as the other role
- Changing plugin options from theme functions file?
- Expected ‘add_filter’ (T_STRING)
- Execute a function when the entire page is displayed
- How can i listing current category and Featured Category post list?
- How to add custom function to pluggable.php
- Adding a pagenavi to function for displaying bookmarks
- grab or load text on demand
- sliding/fading header plugin or approach suggestion
- What is the most efficient way of adding additional functionaliy for admin only
- Error Metabox Warning: call_user_func() expects parameter 1 to be a valid callback
- Replace the_content with ACF Flexible Content via function
- How would I get the new plugin version on this function?
- Cannot pass value variable to WP AJAX functions
- Search in WordPress
- Easiest way to load/fire a handful of functions, IF checkbox is checked?
- post id or permalink auto-incrementing number and reset everyday
- Modify function output in a plugin
- Is admin section completely customizable in terms of styling?
- How to make the first letter of a post title uppercase, in a plugin?
- Get a Taxonomy values in an array
- How to change the product short description for each product with PHP?
- Migrating custom php we wrote from functions.php into a site-specific plugin
- Shows warning when enable “wp_gallery_custom_links” plugin with Themify Builder
- WordPress environment not loading properly
- Place content inside the Post Loop
- wp_schedule_event need to deactivate plugin changing recurrance
- Follow author on muti-user WordPress site
- Code fails in plugin file but works in functions.php
- Conditional required fields for WordPress Contact Form 7
- Cannot access variables within a widget
- Is there any wordpress function to update a random post every 10 minutes?
- Calling a function from a link in WordPress
- WordPress plugin options need to delete after deactivate & uninstall
- WordPress function to add text
- Doing action based on input from options menu
- Showing author box on post detail page
- Customize Multi-Column Tag Map to fetch specific post-type
- is_plugin_active() not defined on active plugin, in the thumbnails.php file
- Sync roles across several plugins
- Requires PHP version 5.3.0
- How to Allow Users to Select Recipients In a WordPress Comment section?
- How often should I execute add_filter and function declaration in Code Snippets?
- Product customizing quiz – quiz adding products to the cart
- How to change all the urls of the WordPress site?
- Event Made Easy – Block registration to two or more events that have the same category
- I want to allow certain file types on dokan upload files