Results 1 to 3 of 3

Thread: Specify Order of Items in Filter Bar

  1. #1
    Thread Starter
    islajobs's Avatar
    Join Date
    Jan 2011
    Location
    Puerto Rico
    Posts
    69
    Thanks
    2
    Thanked 13 Times in 12 Posts

    Specify Order of Items in Filter Bar

    Hi,

    The filter bar by default displays its contents in alphabetical (or numerical) order. Since I have edited my filter bar to display Salary instead of Job Type, this becomes a slight problem as it puts my "$100K+" category at the beginning, whereas I'd rather have my "$20 - 39K" category at the beginning. Not a huge deal, but just annoying enough for me to see if there's a fix.

    Does anyone know how I can customize the order of the items that appear in the filter bar? Here's the relevant code from filter-form.php:

    Code:
    		<?php
    		$job_types = get_terms( 'job_salary', array( 'hide_empty' => '0' ) );
    		if ($job_types && sizeof($job_types) > 0) {
    			foreach ($job_types as $type) {
    				?>
    				<p><input type="checkbox" name="<?php echo $type->slug; ?>" id="<?php echo $type->slug; ?>" <?php 
    					
    					if (isset($_GET[$type->slug]) || !isset($_GET['action'])) echo 'checked="checked"'; 
    					
    				?> value="show" /> <label for="<?php echo $type->slug; ?>"><?php echo $type->name; ?></label></p>
    				<?php
    			}
    		}
    		?>
    Anyone know what I should add/change?

    Thanks.

    IslaJobs.com

  2. #2
    Junior Member jamaxfer's Avatar
    Join Date
    Feb 2011
    Posts
    20
    Thanks
    2
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    evertsemeijn's Avatar
    Join Date
    Jan 2011
    Location
    Amsterdam, The Netherlands
    Posts
    103
    Thanks
    0
    Thanked 12 Times in 12 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] I need to change the word Filter to "filtrar" (at the filter bar)
    By jf77 in forum JobRoller General Discussion
    Replies: 7
    Last Post: February 23rd, 2011, 02:28 AM
  2. Can't re-order tabs as use "other items for sale by this member" query
    By doctorcilantro in forum ClassiPress General Discussion
    Replies: 8
    Last Post: February 1st, 2011, 10:30 AM
  3. [SOLVED] Form Layout Order Option Gone at 3.0.5? How to order now?
    By teller in forum Report ClassiPress Bugs
    Replies: 2
    Last Post: November 23rd, 2010, 05:58 AM
  4. [MOD NEEDED] How to order the ads of an author in alphabetical order
    By jeferson in forum ClassiPress General Discussion
    Replies: 4
    Last Post: September 28th, 2010, 03:28 AM
  5. How to move around the order of the menu items . the top bar
    By shatoony26 in forum Report ClassiPress Bugs
    Replies: 1
    Last Post: August 19th, 2010, 03:28 AM