November 12, 2015 at 12:23 PM #35813
The solution shown here worked perfectly for me but one of the recent updates appears to have broken it.
This is the line of the code in the Enhanced Results field with the problem:
<span class=”slp_result_contact slp_result_website slp_dgl_fmd”>Full member details</span>
It seems to rendering the text “Full member details” outside the a tag rather than between it.
You can see it if you view the source code on this page:
Search for TN31 7AN and on the results below the map in the right hand column there is a gap between Website and Email and in the source you will see what I mean.
Store Locator Plus Version:4.3.20
This Info Cached:1447345538
WordPress General Limit:40M
WordPress Admin Limit:256M
PHP Peak RAM:55 MB
PHP Post Max Size:20M
TimNovember 13, 2015 at 4:06 AM #35875
Sorry code should read:
<span class="slp_result_contact slp_result_website slp_dgl_fmd"><a href=[slp_location sl_pages_url]>Full member details</a></span>November 16, 2015 at 6:35 AM #35931
I found the problem. The shortcode now needs to be surrounded by double quotes:
<span class="slp_result_contact slp_result_website slp_dgl_fmd"><a href="[slp_location sl_pages_url]">Full member details</a></span>November 16, 2015 at 2:42 PM #35955
Hi Timothy, yes, Thank you for answering your own question and posting here. Appreciate it!
🙂November 16, 2015 at 8:41 PM #35963
This perplexes me since on the Page Template documentation page it says “As of WP update 4.2.3 you can no longer have a shortcode in double quotes”. Page Template DocumentationNovember 17, 2015 at 2:57 PM #35984
standalone short code. not the text. The statement was out of context.
The template should be written using basic HTML as allowed by the WordPress page editor in “text” (versus visual) mode. Your situation you are adding “tel:in the href and the shortcode. the above example he has not added another piece of text within the quotes, only the shortcode in double quotes. If you go back to your post maybe we can explain it better.
You must be logged in to reply to this topic.