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

dev.xiligroup est en travaux Forums xili-tidy-tags plugin Only show tags with more than x posts in Assign screen?

Ce sujet contient 0 réponses et 2 voix, et a été mis à jour par  xiligroup dev il y a Il y a 12 ans, 8 mois.

Visualisation du message 2 (1 sur 2, 2 au total)
  • Auteur
    Articles
  • #2944

    Anonyme

    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,

Visualisation du message 2 (1 sur 2, 2 au total)

Vous devez être connecté pour répondre à ce sujet.