How can I add Category and Towns (cities) filter to listings main page?

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #32252

    Greg McEwan Marriott
    Buyer
    Post count: 36

    Is there anyway to be able to add a category filter/drop down select box and a list of towns in the region to the listings main page (as shown in pic) – i can include a function in my theme functions file but what function can i call to achieve this?

    #32311

    Paolo
    Site Admin
    Post count: 31206

    Hi

    For categories you can use normal wordpress API function. get_catgories or wp_list_categories

    http://codex.wordpress.org/Function_Reference/get_categories
    http://codex.wordpress.org/Template_Tags/wp_list_categories

    For the locations you could either add the geodir_location_switcher shortcode in a hidden window and make it appear with that button, or check that shortcode functions to determine how to build your perfect solution.

    Let us know,

    Thx

Viewing 2 posts - 1 through 2 (of 2 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket