Title: Adding schema with nested properties
Last modified: January 11, 2026

---

# Adding schema with nested properties

 *  Resolved [Jlwp](https://wordpress.org/support/users/jlwp123/)
 * (@jlwp123)
 * [4 months, 3 weeks ago](https://wordpress.org/support/topic/adding-schema-with-nested-properties/)
 * I think this is a fantastic plugin, yesterday I left a five star review :
   One
   of the reasons I think this is a fantastic plugin is that it allows programmatic
   adding of schema as described at:[https://docs.wpslimseo.com/slim-seo/schema/](https://docs.wpslimseo.com/slim-seo/schema/)
   This gives the example code:
 *     ```wp-block-code
       add_filter( 'slim_seo_schema_graph', function ( $graph ) { if ( is_singular( 'movie' ) ) { $graph[] = [ '@type' => 'Movie', 'name' => get_the_title(), 'director' => get_post_meta( get_the_ID(), 'director', true ), ]; } return $graph;} );
       ```
   
 * And this works really well.
 * But I would like to add eg:
 *     ```wp-block-code
       {  "@context": "https://schema.org",  "@type": "WebPage",  "name": "Mortgage Calculator",  "mainEntity": {    "@type": "SoftwareApplication",    "name": "Mortgage Calculator",    "operatingSystem": "Web",    "applicationCategory": "Calculator",    "isAccessibleForFree": true  }}
       ```
   
 * Where “”@type”: “SoftwareApplication”, is a sub or nested property of “mainEntity”.
 * Is is possible to add this type of schema structure in the free version?
 * Thanks ahead of time and thanks for such a great plugin.
    -  This topic was modified 4 months, 3 weeks ago by [Jlwp](https://wordpress.org/support/users/jlwp123/).

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

 *  Plugin Author [Anh Tran](https://wordpress.org/support/users/rilwis/)
 * (@rilwis)
 * [4 months, 2 weeks ago](https://wordpress.org/support/topic/adding-schema-with-nested-properties/#post-18789626)
 * Hi [@jlwp123](https://wordpress.org/support/users/jlwp123/) ,
 * Yes, you can add complex, nested properties for schemas by using the similar 
   code. But instead of just adding a flat array, you can add a multi-dimensional
   array, like this (untested):
 *     ```wp-block-code
       add_filter( 'slim_seo_schema_graph', function ( $graph ) {	$graph[] = [		"@type" => "WebPage",		"name" => "Mortgage Calculator",		"mainEntity" => [			"@type" => "SoftwareApplication",			"name" => "Mortgage Calculator",			"operatingSystem" => "Web",			"applicationCategory" => "Calculator",			"isAccessibleForFree" => true,		],	];	return $graph;} );
       ```
   
 * However, we’d recommend [Slim SEO Pro](http://wpslimseo.com/products/slim-seo-pro/)
   for a visual schema builder, where you see and enter the details much easier.
   After adding schemas, you can use [our browser extension](https://elu.to/ec) 
   to check if they’re valid.
 *  Thread Starter [Jlwp](https://wordpress.org/support/users/jlwp123/)
 * (@jlwp123)
 * [4 months, 2 weeks ago](https://wordpress.org/support/topic/adding-schema-with-nested-properties/#post-18792146)
 * Hello [@rilwis](https://wordpress.org/support/users/rilwis/) thank you for your
   response. I am just starting this site and will definitely buy Pro when the site
   starts to generate some money.

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

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fadding-schema-with-nested-properties%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/slim-seo/assets/icon.svg?rev=2005049)
 * [Slim SEO - A Fast & Automated SEO Plugin For WordPress](https://wordpress.org/plugins/slim-seo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/slim-seo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/slim-seo/)
 * [Active Topics](https://wordpress.org/support/plugin/slim-seo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/slim-seo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/slim-seo/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Jlwp](https://wordpress.org/support/users/jlwp123/)
 * Last activity: [4 months, 2 weeks ago](https://wordpress.org/support/topic/adding-schema-with-nested-properties/#post-18792146)
 * Status: resolved