Support » Plugin: Faceted Search » [Plugin: Faceted Search] How to sort tags in alpha ascending?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter nohler

    (@nohler)

    I added
    asort($tags);'
    just after function facetedsearch_tag_content

    That did the trick

    *** resolved ***

    Hi

    Could you post the full line of code you changed please and in what file?

    Thanks

    I’m interested too, could you show us where you put this?

    Thanks.

    Open Faceted_search.php

    Find this line:

    $tags = $wpdb->get_results('SELECT t1.name, t1.term_id, t2.parent FROM '.$wpdb->terms.' t1, '.$wpdb->term_taxonomy.' t2, '.$wpdb->term_taxonomy.' t3 WHERE t2.term_id = t1.term_id AND t3.term_id=t1.term_id AND t3.taxonomy="post_tag" ORDER BY t2.parent DESC', ARRAY_A);}

    Add

    asort($tags);

    after that.

    Save and it displays the tags in Alpha order.

    Thread Starter nohler

    (@nohler)

    Sorry your request got lost in my spam folder.

    Nice work Selvester47

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Faceted Search] How to sort tags in alpha ascending?’ is closed to new replies.