Multiple Schema Markup

#668422
  • Resolved Anonymous
    Rank Math free

    Hello,
    I’m curious to know if it’s feasible to incorporate multiple values within schema markup. I’m particularly interested in the utilization of the “@graph” element and the arrangement of data within square brackets []. Please check data

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hello,

    Thank you for reaching out to Rank Math Support!

    Regarding your question about incorporating multiple values within schema markup, it is indeed possible to use the “@graph” element and arrange data within square brackets [].

    The “@graph” element is used to define a collection of related entities in a structured way. It allows you to include multiple entities within a single schema markup. Each entity can have its own properties and values.

    As for arranging data within square brackets [], it is commonly used to represent an array of values. This is useful when you have multiple values for a particular property. For example, if you have multiple authors for an article, you can use square brackets to list all the authors.

    Here’s an example of how you can use the “@graph” element and square brackets in schema markup:

    {
      "@context": "https://rankmath.com/kb/faq-schema-block/",
      "@graph": [
        {
          "@type": "Article",
          "headline": "Example Article",
          "author": [
            {
              "@type": "Person",
              "name": "Author 1"
            },
            {
              "@type": "Person",
              "name": "Author 2"
            }
          ]
        }
      ]
    }

    In the above example, we have an Article entity with a headline property and an author property. The author property is an array of two Person entities, each with their own name property.

    I hope this clarifies your query. If you have any further questions or need assistance with anything else, please feel free to ask.

    Best regards,
    Rank Math Support

    Sources:
    How to Choose the Right Schema for Your Content » Rank Math
    How to Use Schema Templates in Rank Math PRO » Rank Math
    How to Add FAQ Schema Block Using Rank Math SEO

    Anonymous
    Rank Math free

    Please, I need help from support

    Hello,

    Thank you for contacting Rank Math support, and sorry for any inconvenience that might have been caused due to that.

    It is possible to include multiple values for a property using an array in JSON-LD, which is commonly used for schema markup. You can use the “@graph” element and arrange data within square brackets [].

    The schema you shared seems to be a bit misformatted and returned invalid when tested with Google Rich Result, but we have corrected it for you so that both “TechArticle” and “ItemPage” have a “keywords” property, and each property contains an array of keywords.

    
    {
    	"@context": "https://schema.org",
    	"@graph": [
    		{
    			"@type": "TechArticle",
    			"keywords": [
    				"keywords #1",
    				"keywords #2"
    			]
    		},
    		{
    			"@type": "ItemPage",
    			"keywords": [
    				"keywords #3",
    				"keywords #4"
    			]
    		}
    	]
    }
    
    

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

    Thank you for choosing Rank Math.

    Anonymous
    Rank Math free

    Thanks for the replay.

    Sorry if my question is not clear, but I’m wondering how can I use multiple value with RankMath custom Schema generator?

    Hello,

    If you want to add multiple properties then you will have to add them as an array using the property group option.

    You can use the Property Group to add the array in the Custom Schema builder. Please follow this screencast: https://i.rankmath.com/v/yGGnih to know how.

    Hope that helps. Let us know if you need any other assistance.

    Thank you.

    Anonymous
    Rank Math free

    thanks a lot. This is exactly what I wanted to see

    Hello,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

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

The ticket ‘Multiple Schema Markup’ is closed to new replies.