Display Address Elements in Search Results

This topic contains 4 replies, has 3 voices, and was last updated by  Paolo 9 years, 6 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #38366

    MC1171611
    Full Member
    Post count: 180

    Hi guys,

    You provided me with a snippet to add tags in the search results that started with this:

    add_action('geodir_after_listing_post_excerpt' ,'tag_in_search');

    I would like to also add the City/Region as well, preferably on the same line as the distance. I’ve provided a screenshot with an example markup of what would be ideal.

    Can you provide me with a snippet to add this function to my search results?

    Thanks!

    #38373

    Simone
    Expired Member
    Post count: 3515

    Hello, add the attached file to your child theme folder, under the folder geodirectory (create it)

    rename the file to .php

    #38376

    Paolo
    Site Admin
    Post count: 31206
    This reply has been marked as private.
    #38379

    MC1171611
    Full Member
    Post count: 180

    Simone,

    Thank you very much. It works splendidly.

    paolo,

    I was simply trying to correct what seems to me to be a hole in the functionality. I apologize if you don’t see it the same way, but it seems as if this should be an option of sorts. The search results are far less helpful without this information added.

    #38380

    Paolo
    Site Admin
    Post count: 31206
    This reply has been marked as private.
Viewing 5 posts - 1 through 5 (of 5 total)

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

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount