Store Locator Plus® for WordPress › Forums › Premier Support › Add Extended Data into results
Tagged: extended data
- This topic has 4 replies, 2 voices, and was last updated 8 years, 5 months ago by Cici.
-
AuthorPosts
-
June 14, 2016 at 10:53 PM #41622wy4tt34rpParticipant
I have installed the Extended Data add-on and added a new field named Referral Phone. The slug is referral_phone. I would like to add it to the search results listing. I tried to add:
<span class=”slp_result_address slp_result_phone”>REFERRALS: [referral_phone]</span>
…to “Experience” > “Results Layout”, but it rendered:
Referrals: [referral_phone]
…as opposed to the data value that was entered into the field.
Can you show me how this is supposed to be done and/or direct me to the documentation that explains it?
TIA
KOJune 16, 2016 at 11:30 AM #41656wy4tt34rpParticipantMoved to DeBaat’s Forum. (ref: https://wp.storelocatorplus.com/forums/topic/add-extended-data-into-results-2/)
June 17, 2016 at 12:59 PM #41679CiciKeymasterHey again,
For DeBaats purposes he doesnt’ have access to your Plugin Environment, for our edification could you please repeat it here?
Have you updated EXT DATA to 4.5.01 for instance?
I’m trying to remember how I did it when I played around with it , I thought I had to have the shorctode slp_location. This is what I see for the documentation and the short codes under results: …
slp_location shortcodes (Extended Data Manager)
[slp_location data.<slug>]
Replace <slug> with the field slug as shown under the Extended Data Manager interface. You will find the slugs under the General tab , Extended Data Manager sub-tab.
For example, if I add a field named “Has Donuts” to my location data, EDM will default to using the slug “has_donuts”. The shortcode [slp_location data.has_donuts] will output whatever is stored in that field. If you use a boolean data type the value will be 1 or 0 will be output.
June 17, 2016 at 1:08 PM #41680wy4tt34rpParticipantCici
[slp_location data.referral_phone] and a link to the documentation page is exactly what I needed.
<span class="slp_result_address slp_result_phone">REFERRALS: [slp_location data.referral_phone]</span>
Works perfectly.
TY!
KOJune 18, 2016 at 11:43 AM #41684CiciKeymasterIt does? Ok that is cool, I was trying to add it in my results to test it but i had the span class backwards….so I am glad you were better at adding it successfully.
I will try to copy that over to our new docs site. It is difficult to work between the two and not all of the documents have been transferred, updated etc.
Thanks for letting us know…I will copy our conversation to DeBaats forum as well and mark as closed.
🙂
-
AuthorPosts
- The topic ‘Add Extended Data into results’ is closed to new replies.