How can I remove certain HTML tags from the RSS feed?

You haven’t specified how it doesn’t work 🙂 Does it remove some links or doesn’t do anything at all. Anyway, to alter the content of every RSS item you can use rss_item() hook, or rss2_item() depending which stream is your target. add_filter(‘rss_item’, ‘custom_item_content’); function custom_item_content($content) { // alter your $content here return $content; }

require one tag for each post

Have fun. This works for any post type (including customs) that supports the ‘post_tag’ taxonomy. 99.9% of the time, it will apply only to ‘post’ post type. But we make compatible stuff 😉 /* Plugin Name: Single Postag Description: Enforces use of single ‘post_tag’ taxonomy on select posts. Author: EarnestoDev Version: 1.0.0 Author URI: http://www.earnestodev.com/ … Read more

how to change # of tag posts on /tag page?

I would put this in functions.php: function main_query_mods( $query ) { // check http://codex.wordpress.org/Conditional_Tags to play with other queries if(!$query->is_main_query()) { return; } if(is_tag()) { $query->set(‘posts_per_page’,15); } } add_action( ‘pre_get_posts’, ‘main_query_mods’ );

display tag slug as class per link in tag cloud

one possible way: add a filter in functions.php of your theme: add_filter ( ‘wp_tag_cloud’, ‘tag_cloud_slug_class’ ); function tag_cloud_slug_class( $taglinks ) { $tags = explode(‘</a>’, $taglinks); $regex = “#(.*tag-link[-])(.*)(‘ title.*)#e”; foreach( $tags as $tag ) { $tagn[] = preg_replace($regex, “(‘$1$2 tag-‘.get_tag($2)->slug.’$3’)”, $tag ); } $taglinks = implode(‘</a>’, $tagn); return $taglinks; }

Quicktags on all textarea.. Not working on plugin?

it you’re not seeing the buttons, try to call QTags._buttonsInit(); right after you call the quicktags( settings ); function. quicktags(settings); QTags._buttonsInit(); Following also works for me qt_editor = new QTags( { ‘id’: ‘my_editor’, ‘buttons’: ‘strong,em,link’ } ); QTags._buttonsInit(); Also, it seems that adding a button via QTags.addButton() function also makes your toolbar to display qt_editor … Read more

Add # before each tag

Another very simple solution is to put this in your css file : .tagcloud a:before { content: “#”; font-color: #000; }

Massive Tags Remove Using MySQL

MySql DELETE syntax is not very different fiom SELECT, so you can delete from multiple tables using a single query. Taxonomies informations in WordPress are in 3 tables: wp_terms wp_term_taxonomy wp_term_relationships the first 2 contain term / taxonomy informations, the 3rd contains association between terms and posts. The query to delete all tags from WordPress … Read more

Creating a unique, linked list of tags from a specific category?

You can build a stack of unique tags, then loop over them again to output. Couple of extra things though – never use query_posts. Secondly, you can be way more efficient in your querying and save a lot of memory in the process: $post_ids = get_posts( array( ‘posts_per_page’ => -1, ‘category_name’ => ‘testing’, ‘fields’ => … Read more

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