Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Someone knows how to show 'all tags' insteads of the 'most used tags' in edit post of administration panel? This should give the ability to select with a single click tags that are not yet used!

Here is a screenshot of what I mean: screenshot

Thank you very much.

Ok, I've resolved in this manner: go to wp-admin -> include and open ajax-actions.php file, inside wp_ajax_get_tagcloud function edit line 658, that shows as this:

$tags = get_terms( $taxonomy, array( 'number' => 45, 'orderby' => 'count', 'order' => 'DESC' ) );

and change it with this:

$tags = get_terms( $taxonomy, array( 'number' => 45, 'orderby' => 'count', 'order' => 'DESC', 'hide_empty' => 0 ) );

this will work for me; hope could be useful.

share|improve this question
add comment

1 Answer

Go to your WordPress installation and open wp-admin/admin-ajax.php. Search for a line that looks like

$tags = get_terms( $taxonomy, array( 'number' => 45, 'orderby' => 'count', 'order' => 'DESC' ) );

and change the 45 to 999 or something like that ;-)

Then open wp-admin/includes/meta-boxes.php and modify the following line:

<p class="hide-if-no-js"><a href="#titlediv" class="tagcloud-link" id="link-<?php echo $tax_name; ?>"><?php echo $taxonomy->labels->choose_from_most_used; ?></a></p>

to

<p class="hide-if-no-js"><a href="#titlediv" class="tagcloud-link" id="link-<?php echo $tax_name; ?>"><?php echo $taxonomy->labels->all_items; ?></a></p>

That's it, hope that helps...

share|improve this answer
    
Hi, thank you very much for your answer. I've just found another way to fix it. –  Virgo Sep 4 '12 at 17:12
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.