Your address will show here +12 34 56 78

Home Forums Custom Taxonomies / Categories Order

This topic contains 2 replies, has 3 voices, and was last updated by  ysalim 2 years, 3 months ago.

  • Author
    Posts
  • #70408

    Anna
    Keymaster

     

     

    Option 1:

    There is a plugin that has more sorting options and allows you to order in which order you wish:

    Custom Taxonomy Order NE – http://products.zenoweb.nl/free-wordpress-plugins/custom-taxonomy-order-ne/

    Option 2:

    You can do this on every category list :

    – identify the code that is responsible for that list. This code will have a wp_query wordpress instruction with a $args array passed as arguments.
    -To change the order you need to add ‘order by’ (followed by the property name you want to order) and ‘order’ (ASC for ascended or DESC as decended)
    – to get “entire place” before “apartments” you cold order by “id” and set order to DESC -> meaning it will order by inserting time – the last inserted will be first.

    More details can be read on http://codex.wordpress.org/Class_Reference/WP_Query

    Thanks

  • #71602

    Mittch

    This solution works as explained above. This is the procedure I followed: write and arrange the categories such that the last one you write will appear first to the visitor viewing your site. After arranging, download and install the free plugin ‘Taxonomy Terms Order’ that offer 2 Autosort settings: ON, and OFF; with Autosort ON the categories will appear with the last one written on top (Autosorted descending by the ID of the category). With Autosort OFF the alphabetical order is applied. Example: the original theme setup comes with 2 Actions, Rental and Sales. When you add another category like Lease: with Autosort ON the list will show as Lease, Sales, Rental (order by ID, last one shows first); With Autosort OFF the list will show as Lease, Rental, Sales (alphabetical).

  • #111892

    ysalim
    Participant

    Option 1 works best for me. Thanks

You must be logged in to reply to this topic.