Your address will show here +12 34 56 78

Home Forums WP ESTATE – Real Estate WordPress Theme FORUM Properties List Order Alphabetically

This topic contains 5 replies, has 5 voices, and was last updated by  shielabfrans 2 years, 1 month ago.

  • Author
    Posts
  • #56068

    Anna
    Keymaster

    In property-list.php around line 94 you have
    $args = array(
    ‘post_type’ => ‘estate_property’,
    ‘post_status’ => ‘publish’,
    ‘paged’ => $paged,
    ‘posts_per_page’ => $prop_no,
    ‘meta_key’ => ‘prop_featured’,
    ‘orderby’ => ‘meta_value’,
    ‘order’ => ‘DESC’,

    );
    put ‘orderby’ => ‘title’,
    ‘order’ => ‘ASC’,

    and remove the lines

    add_filter( ‘posts_orderby’, ‘my_order’ );
    remove_filter( ‘posts_orderby’, ‘my_order’ );

    this will order alphabetical by title and remove any order by featured listing
    Thank you

    • This topic was modified 3 years, 1 month ago by  Anna.
    • This topic was modified 2 years, 5 months ago by  Anna.
  • #81765

    Katharina

    I would like to sort the properties list by publishing date. How does that work?
    Thanks in advance for your support.

  • #92641

    Bruno

    I tried, but it’s don’t work, can you help me ?

  • #103772

    lexuspro
    Participant

    Anna! Is it possible to arbitrarily specify what categories above, and some below?

  • #114177

    nipinitta
    Participant

    Search for “Custom Taxonomy Order NE” in add new plugin, install and activate. There you can edit orders 😉

    Best,
    Daniel

  • #118327

    shielabfrans
    Participant

    I tried it several times but it doesn’t work with me. How can I fix this? Hope you can help.

You must be logged in to reply to this topic.