Include the URL in the Search Results

Showing the URL in the search results can be done by creating a custom search results template with the wpsl_listing_template filter. If you also like to include it in the info window that opens up after the user clicks on a marker, then that’s done with the wpsl_info_window_template filter.

Place the code examples below in the functions.php inside your active theme folder, and a ‘Visit Website’ text will show up in the search results and info window template linking to the provided URL.

Search Results Template

Info Window Template