Viewing 1 replies (of 1 total)
  • swirvbox

    (@swirvbox)

    I’d be interested in breaking the address up as well. I’d like to be able to have the address in a form that I can wrap in schema.org meta tags around.
    Example:

    <div  itemprop="location" itemscope itemtype="https://schema.org/PostalAddress">
       <?php $location = the_field('location'); ?>
       <span itemprop="streetAddress"><?php echo $location['street_address']; ?></span>
       <span itemprop="addressLocality"><?php echo $location['city']; ?></span>
       <span itemprop="addressRegion"><?php $location['state']; ?></span>
       <span itemprop="postalCode"><?php echo $location['zip_code']; ?></span>
    </div>

    Something like that would be helpful.

Viewing 1 replies (of 1 total)
  • The topic ‘splitting the location field by address and city’ is closed to new replies.