Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Eyal Fitoussi

    (@ninjew)

    Hi,
    Place the below script in the functions.php file of your theme. The script will display the taxonomy you wish ordered by name and Ascending.

    you will need to replace the value 1 ( in if ( $gmw[‘ID’] != 1 ) ) with your form ID and if needed also replace the name of the taxonomy post_tag ( in $tax->name != ‘post_tag’ ) with the taxonomy you wish to reorder.

    function gmw_modify_tags_order( $args, $gmw, $tax ) {
    
            //replace 1 with your form ID
    	if ( $gmw['ID'] != 1 )
    		return $args;
    
            //replace post_tag with your taxonomy name if needed
    	if ( $tax->name != 'post_tag' )
    		return $args;
    
     	$args['orderby'] = 'name';
    	$args['order']	 = 'ACSD';
     	return $args;
    }
    add_filter( 'gmw_pt_dropdown_taxonomy_args', 'gmw_modify_tags_order', 10, 3 );
    Thread Starter Keno

    (@tangpage)

    Awesome, thank you so much!

    Plugin Author Eyal Fitoussi

    (@ninjew)

    You are welcome!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘search form, tag selector, the tags are under random order…anyway to change?’ is closed to new replies.