how to add # before tags?

You could just do cosmetic changes on your theme with some javascript: <script type=”text/javascript”> jQuery(document).ready(function(){ jQuery(‘.tags li a’).prepend(‘#’); }); </script> <ul class=”tags”> <li><a href=”https://wordpress.stackexchange.com/tag/sometag/”>sometag</a></li> </ul>

Detect tag page and include an Image for that specific tag

Here are 2 solutions: Using Tag titles <?php switch( single_tag_title( ”, false ) ) { case ‘Books’ : include ‘tags/books.php’; break; case ‘Tables’ : include ‘tags/tables.php’; break; default : break; } ?> Using tag slugs: <?php if ( is_tag( ‘books’ ) ) { include ‘tags/books.php’; } else if ( is_tag( ‘tables’ ) ) { include … Read more

How to set thumbnail for each tag?

There are several plugins that allow you to attach images to categories/tags/taxonomy terms. Try googling taxonomy images site:wordpress.org/extend/plugins (the last part restricts the search to the WordPress plugin repository) and you’ll find a variety of recently updated plugins, including: Taxonomy Images – http://wordpress.org/extend/plugins/taxonomy-images/ Gecka Terms Thumbnails – http://wordpress.org/extend/plugins/gecka-terms-thumbnails/ Taxonomy Images II – http://wordpress.org/extend/plugins/category-images-ii/ SB Uploader … Read more

Bumping a (tagged) post to the top of archives

The query_posts function documentation does give an example on how to filter by time as well. Albeit, small and out of context. The WP_Query documentation give much more information, including on Time Parameters that it accepts. query_posts is just a wrapper to methods provided by the global instance of the WP_Query class. So, the correct … Read more

Problem using the word “RSS” as a tag

It’s not possible to do yet due to a bug in WordPress core. A workaround was provided in WordPress ticket function disable_canonical_redirection_for_tag_feeds() { if ( is_feed() && is_tag() ) remove_action( ‘template_redirect’, ‘redirect_canonical’ ); } add_action( ‘wp’, ‘disable_canonical_redirection_for_tag_feeds’ );

Setup proper 301 redirect for deleted tags

Sounds like an easy task to do. I think hooking into ‘template_redirect’ and conditionally triggering redirect is the way to go. EDIT: Seems is_tag() isn’t reliable once 404 is triggered. That’s why we need to look into the query vars to figure out if it’s really a tag query or not. function redirect_404_tags_wpse67077() { global … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)