Support » Plugin: WP SEO Structured Data Schema » One of telephone or url must be provided.

  • I can see the missing info in the Structured Data Testing Tool. It looks like the code is inserted in the Footer.php. Can you tell me where in the footer.php the missing code can be inserted? I will copy and paste the code and supply the missing telephone number. Why isn’t the telephone number entry field missing from settings as this is important for businesses.

    If I’m wrong about this, can you tell me how to fix this?

    Thanks again for your hard work that you have put into this plugin.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter jortiz8


    My website is

    I am getting the same error message and have no idea how to fix it. There is no field for telephone number on the service tab. Can you tell me what I need to put where to correct the error?

    Plugin Author kcseopro


    Thanks guys…taking a look and doing a plugin update in the coming week.

    Yes. I get this error message too. I am not sure what I am doing incorrectly as everything appears to be set up correctly.

    “One of telephone or url must be provided.”

    I figured it out: for an 800 number the number needs to be entered like this (in USA):


    Here is the solution:

    Open the plugin code and move to wp-seo-structured-data-schema/lib/classes/KcSeoOutput.php

    Find this code:
    “telephone” => ! empty( $settings[‘contact’][‘telephone’] ) ? $KcSeoWPSchema->sanitizeOutPut( $settings[‘contact’][‘telephone’] ) : ”,

    Change it into

    “telephone” => ! empty( $settings[‘contact’][‘telephone’] ) ? $KcSeoWPSchema->sanitizeOutPut( $settings[‘contact’][‘telephone’] ) : $settings[‘site_telephone’],

    We need give the value if the variable is empty. It seems the scheme code can’t accept empty phone number.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘One of telephone or url must be provided.’ is closed to new replies.