How to display all images of post in schema?

SNIP: Structured Data & Schema Plugin for WordPress Forums Structured Data Help How to display all images of post in schema?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #3839
    CatOfSEO
    Participant

    I was looking for a way to add all imageobjects from my article but i’m stuck. Could you please guide how to add all image objects/images of article in the global article schema so that it picks and add all images automtically.

    Thanks

    #3841
    Florian
    Keymaster

    Hey there,

    yes, you can do that by creating your own loop: https://rich-snippets.io/how-to-add-your-own-loop/

    Greetings
    Florian

    #3843
    CatOfSEO
    Participant

    Could you please explain it a little? What should be the $values? is this a plugin? How to install it?

    Thanks

    #3845
    Florian
    Keymaster

    Of course! In line 19 you define the name of the loop.
    On line 46 you define the items. Here you need some code that fetches all the images from your blog post and return it as image objects.

    Hope that helps.
    Florian

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.