GeoDirectory SupportDisplay Address Elements in Search Results – GeoDirectory Support https://wpgeodirectory.com/support/topic/display-address-elements-in-search-results/feed Sun, 09 Nov 2025 01:31:05 +0000 http://bbpress.org/?v=2.5.14-6684 en-US https://wpgeodirectory.com/support/topic/display-address-elements-in-search-results/#post-38366 <![CDATA[Display Address Elements in Search Results]]> https://wpgeodirectory.com/support/topic/display-address-elements-in-search-results/#post-38366 Thu, 30 Apr 2015 18:06:52 +0000 MC1171611 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!

]]>
https://wpgeodirectory.com/support/topic/display-address-elements-in-search-results/#post-38373 <![CDATA[Reply To: Display Address Elements in Search Results]]> https://wpgeodirectory.com/support/topic/display-address-elements-in-search-results/#post-38373 Thu, 30 Apr 2015 19:28:16 +0000 Simone Hello, add the attached file to your child theme folder, under the folder geodirectory (create it)

rename the file to .php

]]>
https://wpgeodirectory.com/support/topic/display-address-elements-in-search-results/#post-38376 <![CDATA[Reply To: Display Address Elements in Search Results]]> https://wpgeodirectory.com/support/topic/display-address-elements-in-search-results/#post-38376 Thu, 30 Apr 2015 20:15:45 +0000 Paolo https://wpgeodirectory.com/support/topic/display-address-elements-in-search-results/#post-38379 <![CDATA[Reply To: Display Address Elements in Search Results]]> https://wpgeodirectory.com/support/topic/display-address-elements-in-search-results/#post-38379 Thu, 30 Apr 2015 21:22:37 +0000 MC1171611 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.

]]>
https://wpgeodirectory.com/support/topic/display-address-elements-in-search-results/#post-38380 <![CDATA[Reply To: Display Address Elements in Search Results]]> https://wpgeodirectory.com/support/topic/display-address-elements-in-search-results/#post-38380 Thu, 30 Apr 2015 21:49:42 +0000 Paolo