Only show tags with more than x posts in Assign screen?

dev.xiligroup is being renovated Forums xili-tidy-tags plugin Only show tags with more than x posts in Assign screen?

This topic contains 0 replies, has 2 voices, and was last updated by  xiligroup dev 7 years, 9 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2944

    Anonymous

    This worked for me…

    xili-tidy-tags.php, around line 1275…

    inserted if($tag->count < 5)

    change 5 to minimum post count for the tags…

    — OLD —

    foreach ( $listtags as $tag ) {

    $class = ((defined(‘DOING_AJAX’) && DOING_AJAX) ||  » class=’alternate' » == $class ) ?  » :  » class=’alternate' »;

    $tag->count = number_format_i18n( $tag->count );

    if ( $this->post_tag == ‘post_tag’ ) {

    — NEW —

    foreach ( $listtags as $tag ) {

    $class = ((defined(‘DOING_AJAX’) && DOING_AJAX) ||  » class=’alternate' » == $class ) ?  » :  » class=’alternate' »;

    $tag->count = number_format_i18n( $tag->count );

    if($tag->count < 5){

    continue;

    }

    if ( $this->post_tag == ‘post_tag’ ) {

    #2945

    xiligroup dev
    Keymaster

    Hi,

    Code is free, it is possible to modify it (but be aware when automatic upgrade).

    Your idea of preselection is good… I include it in the roadmap for next version with UI to input the count value…

    Enjoy,

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.