I’ve a Customized Submit Kind known as “Places”. This put up sort incorporates ACF fields together with the handle.
I have been tasked with including Native Enterprise Structured Knowledge (https://builders.google.com/search/docs/superior/structured-data/local-business) on all Location posts however I’m not certain on the right way to add the schema code dynamically to the single-location.php template.
That is the ld+json code for the schema from Google:
<script sort="software/ld+json">
{
"@context": "https://schema.org",
"@sort": "Restaurant",
"picture": [
"https://example.com/photos/1x1/photo.jpg",
"https://example.com/photos/4x3/photo.jpg",
"https://example.com/photos/16x9/photo.jpg"
],
"identify": "Dave's Steak Home",
"handle": {
"@sort": "PostalAddress",
"streetAddress": "148 W 51st St",
"addressLocality": "New York",
"addressRegion": "NY",
"postalCode": "10019",
"addressCountry": "US"
}
</script>
Solely the “identify” & “handle” properties are required. I wish to insert ACF area values on the Tackle object’s properties.
Is that this potential? Can I simply use an ACF shortcode for the particular area that I’m concentrating on?
Thanks!