Your address will show here +12 34 56 78

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

  • Author
    Posts
  • #39411

    Samuel-lilith

    Hello Anna.
    Im tryin to make custom advanced search. How can i change order id in dropdown menu (actions) by DESC. If i understand now it ordered by ASC.
    Thank you!

  • #39412

    Samuel-lilith

    [url=http://ipic.su/img/img7/fs/1123123.1401308206.png][img]http://ipic.su/img/img7/tn/1123123.1401308206.png[/img][/url]

  • #39689

    Anna
    Keymaster

    Hello,

    The fields “listed” in map-search-form.php
    for example for city
    $select_city=”;
    $taxonomy = ‘property_city’;
    $tax_terms = get_terms($taxonomy,$args);
    foreach ($tax_terms as $tax_term) {
    $select_city.= ‘

    Thank you
    Anna

  • #39707

    Samuel-lilith

    Thank you.
    So i didn’t sort my dropdown menu by name.
    But have found some other way to do this.
    If someone interestin, for example:
    $args=array(
    ‘orderby’ => ‘id’,
    ‘order’ => ‘ASC’,
    ‘hide_empty’ => true );
    $taxonomy = ‘property_action_category’;
    $tax_terms = get_terms($taxonomy,$args);

    And then just create custom categories with order by “id”

  • #102258

    slap07
    Participant

    Hey Samuel-lilith,
    thank you very much for the solution here !!!
    It was very helpful for me 😉

  • #102260

    Anna
    Keymaster

    Hi slap07 and everyone else reading this ticket.

    There is also a plugin that does this –

    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/

    Thanks
    Anna

You must be logged in to reply to this topic.