• Resolved RedTiger

    (@redtiger)


    Hello,

    I am struggling with setting up WP Job Manager so that it passes the Google Structured Data Test. I have tried to follow all the online guides receive warnings for the following:

    – addresslocality
    – addressregion
    – postalcode
    – streetaddress

    Do you have any example sites which pass these tests that I could take a look at please?

    Many thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Are you considering “passes” as getting no warnings when testing?

    If it’s giving you error/warning on

    – addresslocality
    – addressregion
    – postalcode
    – streetaddress

    Then that means that you do not have your geolocation data being generated correctly for your listings. You MUST have an API key setup in WPJM, and you MUST have a VALID address set in the job_location field which is what is used to generate the geolocation data.

    https://github.com/Automattic/WP-Job-Manager/blob/master/wp-job-manager-template.php#L437

    WP Job Manager does add these values to structured data, but only if it exists in the listing itself, which is automagically generated when the job_location value is set/saved on a listing.

    Here’s code snippet i created as a courtesy for the community on adding custom data to structured data:
    https://gist.github.com/tripflex/c36b2e7a3f212bbeb8cefbf530080ea0

    Plugin Contributor Richard Archambault

    (@richardmtl)

    Hi! Aside from tripflex’s useful suggestions, I’m wondering if you can share a link to a listing that is generating the errors or warnings?

    Plugin Contributor Richard Archambault

    (@richardmtl)

    I’m marking this thread as Resolved as it’s been more than a month since the last reply. If you still need help, please do reply again and mark the thread as Unresolved!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WP Job Manager & Structured Data’ is closed to new replies.