Your address will show here +12 34 56 78

Home Forums WP ESTATE – Real Estate WordPress Theme FORUM Order agents alphabetically in agent-list

This topic contains 1 reply, has 2 voices, and was last updated by  odeleon 2 years, 11 months ago.

  • Author
    Posts
  • #42766

    Anna
    Keymaster

    To order by title

    in agent-list.php

    add in here
    $args = array(
    ‘post_type’ => ‘estate_agent’,
    ‘paged’ => $paged,
    ‘posts_per_page’ => 10);

    this

    ‘orderby’ => ‘title’,
    ‘order’ => ‘DESC’ ┬ásau ASC

    Thank you
    Anna

  • #100589

    odeleon
    Participant

    Hi, I placed the code as stated and it does not work. I get an error on that page.

You must be logged in to reply to this topic.