Wpadverts structure data

#34637
  • Resolved peeyoosh kumar
    Rank Math pro

    Hello:

    We are using WPAdverts plugin for Product classifieds on our website. Under SEO Titles and Meta we have select “product” for schema. Although when we checked the rich results using https://search.google.com/test/rich-results we are getting below error for structure data:-

    1. Missing field ‘priceCurrency’ (optional)
    2. price field does not pick the price from classified pages.
    3. image url picked is of the website logo and not the product image.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Todd
    Rank Math free

    Hi Peeyoosh,

    Thanks for getting in touch with us.

    1. Please add the priceCurrency field in the product Schema to fix the issue:

    2. We cannot pick the price automatically when using the product Schema in posts/pages/CPTs. You can use a filter if you wish to do that:

    https://rankmath.com/kb/filters-hooks-api-developer/

    3. Please add featured image to your post/product/CPT and then that will show up as your product image.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Hi Todd,

    Thanks for your quick revert as always.

    1. Please add the priceCurrency field in the product Schema to fix the issue: I added the same manually for a post type by editing the post type but doing it for individual posts would be a tedious task.

    2. We cannot pick the price automatically when using the product Schema in posts/pages/CPTs. You can use a filter if you wish to do that:

    https://rankmath.com/kb/filters-hooks-api-developer/

    3. Please add featured image to your post/product/CPT and then that will show up as your product image.

    For points 1 & 2 : can these be achieved via some code snippet in theme functions since i am not a developer it would be impossible for me to get it working.

    For point 3, the plugin uses a galley approach. So is it possible again to use some code snipped to make first image from gallery for that post as featured image so that the same goes for product schema?

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    Thank you for following up.

    For points 1 & 2 : can these be achieved via some code snippet in theme functions since i am not a developer it would be impossible for me to get it working.
    The filter link provided will lead you to the code snippet which you can add to your php file.

    Adding featured images automatically is not a feature in Rank Math. I can however suggest that you check this link on the sameauto-featured-image

    Looking forward to helping you. Thank you.

    ​​​​​​

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)

The ticket ‘Wpadverts structure data’ is closed to new replies.