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

2 Answers 2

As of the current version, the file in question appears to be "ajax-actions.php" and is located in wp-admin/includes.

share|improve this answer
    
Please do not use answers for discussion. You will be able to leave comments when you gain some reputation on site. –  Rarst Dec 10 at 20:51
    
I appreciate that, Rarst, but if I can't comment yet, how do I contribute this legitimate improvement to an existing answer? Seems odd to just have to sit on my hands. I realize I'm again probably breaking the rules by discussing something other than this page's topic here, so please advise me on where the appropriate place is to have that conversation. Thanks! –  Adam Abrams Dec 11 at 6:05
    
I understand that it feels discouraging, but answers are totally-not-a-good-thing-to-misuse. :) If you want to improve on existing answer you can suggest edit for it and it will be peer reviewed to be approved. In this specific case the original advice to edit core files is pretty horrible in a first place, so “right file to edit” is hardly saving it. –  Rarst Dec 11 at 8:24
    
PS if you have more extensive question on how to use site you are always welcomed to ask on meta.wordpress.stackexchange.com –  Rarst Dec 11 at 8:26
    
Thanks, Rarst. And true about editing core files - even though in this case I went ahead and did it, I realize it's absolutely not the way to go (in my case I don't mind if it reverts after a future update but obviously it is a Bad Way To Do It!) I'll check out the other discussion. Thanks again! –  Adam Abrams Dec 11 at 14:08

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

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.