Home Forums Theme Support TravelPress Homapage Search Form "When" Ordering Months

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

    Hi,

    I want the months to be ordered as January, February, March, April….December.

    I have changed /wp-content/themes/travelpress/framework/inc/theme-functions/advanced-search-form.php Line 47 as:

    $sd_form_args['fields'][] = array(
    			'type'     => 'taxonomy',
    			'taxonomy' => 'tour-month',
    			'orderby' => 'ID',
    			'order'   => 'ASC',
    			'format'   => 'select',
    			'allow_null' => esc_html__( 'When you want to go', 'travelpress' ),
    			'class'    => array( 'sd-tour-month-select' ),
    		);

    It didn’t work. Do you have another suggestion?

    Thank you!

    #16396

    Hey,

    No need to get dirty editing the code. Simply install this plugin and drag & drop the order: Category Order and Taxonomy Terms Order

    Cheers!

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

You must be logged in to reply to this topic.