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

How to separate the tags?

You need to use another function to get the tags, something that returns an object or an array, like that you can manipulate it as you need. http://codex.wordpress.org/Function_Reference/get_tags <?php $my_tags = get_the_tags();?> Then where you need the first tag: <?php echo $my_tags[0]->name?> For looping the rest except the first tag: <?php $count=1; foreach ($my_tags as … Read more

Can’t Get ‘tag’ Page To Display only Tagged Posts

The problem is this line: query_posts( ‘posts_per_page=5′ ); You’re overwriting the query for this page with a query for the 5 latest posts, regardless of tag, category, etc.. If you remove that line, your template will work as expected. If you want to limit tag pages to only 5 posts, use a pre_get_posts action: function … Read more

How can I extend Quick Edit option with 2 more fields

A small example from my last project. The important part is the hook quick_edit_custom_box. On this hook can you add your form elements. The second important part is to add your script that update the data via javascript. The script in this example was add to the head in edit.php; it is better on footer … Read more

When are tags counted? Can it be trigered manually?

You can call wp_update_term_count_now( $terms, $taxonomy ) (documentation) to update the term count for the specified terms (you will need to pass an array of all terms if you want to update them all). If you want to use your own function instead of the standard function (which counts all posts), you can set the … Read more

Limit tag word count

Use the pre_insert_term filter: function wpse_189722_limit_tag_words( $term, $taxonomy ) { if ( $taxonomy === ‘post_tag’ ) { if ( count( preg_split( ‘/\s+/’, trim( $term ) ) ) > 2 ) $term = new WP_Error( ‘term_too_many_words’, ‘Maximum of 2 words’ ); } return $term; } add_filter( ‘pre_insert_term’, ‘wpse_189722_limit_tag_words’, 10, 2 );