Viewing 11 replies - 1 through 11 (of 11 total)
  • HI borntorun1234,

    Can you give me a link to your site so I can take a look?

    Thread Starter borntorun1234

    (@borntorun1234)

    sure

    I don’t have it on the front page but am using it on all the other pages. When I use the testing tool on google it shows that it found everything like name, phone, hours (although I am confused on how to tell google it is open 24hours) but it says that it cannot find the address or postaladdress. I can see it there and I can even see it in the code. I just wonder if maybe its a format issue or if I am missing something in how I input the address.

    Hi borntorun1234,

    Thanks, I was able to trigger the errors on a couple different sites, so it looks like this is a problem with the plugin. I’ve detailed the issue here, so you can follow along and see when a fix is in place.

    Thread Starter borntorun1234

    (@borntorun1234)

    Great, thanx for looking into it so quickly. Since the rest of the coding on the plugin seems to be working fine I’m sure it will be a quick fix. Thank you again

    Thread Starter borntorun1234

    (@borntorun1234)

    In the meantime do you think there is a workaround I can do for this or do you think the fix is simple enough for me to just wait for the update?

    Hi borntorun1234,

    Are you comfortable making some minor edits to the code? If so, you’ll want to open up the /wp-content/plugins/business-profile/template-functions.php file and find these lines of code.

    if ( $bpfwp_controller->display_settings['show_address'] ) :
    	?>
    
    	<div class="bp-address" itemprop="address" itemscope itemtype="https://schema.org/PostalAddress">
    		<?php echo nl2br( $address['text'] ); ?>
    	</div>
    
    	<?php else : ?>
    	<meta itemprop="address" content="<?php echo esc_attr( $address['text'] ); ?>">
    
    	<?php endif; ?>

    These lines can be adjusted to the following:

    if ( $bpfwp_controller->display_settings['show_address'] ) :
    	?>
    
    	<div class="bp-address">
    		<?php echo nl2br( $address['text'] ); ?>
    	</div>
    
    	<?php endif; ?>
    
    	<meta itemprop="address" content="<?php echo esc_attr( $address['text'] ); ?>">

    If you’re not used to doing this, be careful and backup the file before modifying it. It’s easy to accidentally bring down your site when editing these files. ??

    Hi borntorun1234,

    Disregard that last message. I went ahead and put out an update with a fix for this. The update also fixes a validation issue with the contact URL.

    Thread Starter borntorun1234

    (@borntorun1234)

    Nate you are awesome!. I’ll check it out

    Thread Starter borntorun1234

    (@borntorun1234)

    Now does it auto update or do we need to wait for wordpress to release the update?

    Thread Starter borntorun1234

    (@borntorun1234)

    Works perfect. Outstanding!!!!

    Great! Thanks for reporting back. If you have a minute, I always appreciate reviews for the plugin.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Schema.org markup for Address doesn't work for google’ is closed to new replies.