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

    (@ninjew)

    Hi,
    I will release a new version this week which will have a filter that you could use in order to do that.
    I will keep you updated after the new version is up.

    Hi Eyal,

    The last update works perfect! Is it possible to change the category alphabetically ordered list to another list like:

    for example:
    A
    B
    C

    to
    C
    B
    A

    Thx! Jack

    Plugin Author Eyal Fitoussi

    (@ninjew)

    Hi Jack,
    Drop the code below into your functions.php file:

    function gmw_reorder_taxonomies( $args, $gmw  ) {
    	$args['orderby'] = 'NAME';
    	$args['order']	 = 'DESC';
    
    	return $args;
    }
    add_filter( 'gmw_pt_dropdown_taxonomy_args', 'gmw_reorder_taxonomies', 10, 2 );

    Hi Eyal, thanks! I implemented the code. When I use checkbox it’s alphabetically ordered and when i use dropdown it is ordered by time. Is it also possible to order it manually within the functions.php?

    Like:

    B
    P
    A
    M

    Cheers, Jack

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Order Category Drop-Down Menu on Search Form alphabetically’ is closed to new replies.