Title: Schema Pro
Last modified: April 2, 2020

---

# Schema Pro

 *  Resolved [koreacito](https://wordpress.org/support/users/koreacito/)
 * (@koreacito)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/schema-pro/)
 * I bought schema pro. There is no reply to the support email for a long time, 
   so leave a question here.
 * First, I cannot use the full schema pro rating shortcode.
    [wp_schema_pro_rating_shortcode]
 * Secondly, I can’t expand extra field fot any schema type
    I entered the code 
   referring to the post below. The first field was added successfully. But when
   I fill out the second field, I get an error. – [https://wpschema.com/docs/how-to-add-an-extra-field-for-particular-schema-type/](https://wpschema.com/docs/how-to-add-an-extra-field-for-particular-schema-type/)
 * 1. I added softwareVersion to software-application type.
 * 2. When I add the fileSize field to the softwareapplication type, an error occurs.
 * Please reply.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fschema-pro%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Support [Team Brainstorm Force](https://wordpress.org/support/users/brainstormteam/)
 * (@brainstormteam)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/schema-pro/#post-12638111)
 * Hello [@koreacito](https://wordpress.org/support/users/koreacito/)
 * Sorry for the delay!
 * I can see our team has responded to your query the next day. And sorry for the
   delay, it was mostly due to the timezone difference as were in GMT +0530.
 * Do let us know if you have any further queries.
 *  Thread Starter [koreacito](https://wordpress.org/support/users/koreacito/)
 * (@koreacito)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/schema-pro/#post-12638183)
 * Yes, I got an answer from the management.
    By adding the below array, I was able
   to add the schema type without difficulty.
 *     ```
       add_action( 'after_setup_theme', 'add_my_custom_meta_field' );
       function add_my_custom_meta_field() {
       	add_filter( 'wp_schema_pro_schema_meta_fields', 'my_extra_schema_field' );
       	add_filter( 'wp_schema_pro_schema_software_application', 'my_extra_schema_field_mapping', 10, 3 );
       }
   
       /**
        * Add fields for mapping.
        *
        * @param  array $fields Mapping fields array.
        * @return array
        */
       function my_extra_schema_field( $fields ) {
   
       	$fields['bsf-aiosrs-software-application']['subkeys']['featureList'] = array( // bsf-aiosrs-book used for Book, bsf-aiosrs-event will for Event like that.
       		'label'    => esc_html__( 'Feature List', 'wp-schema-pro' ), // Label to display in Mapping fields
       		'type'     => 'text', // text/date/image
       		'default'  => 'none',
       		'required' => true, // true/false.
       	);
   
       	$fields['bsf-aiosrs-software-application']['subkeys']['screenshot'] = array( // bsf-aiosrs-book used for Book, bsf-aiosrs-event will for Event like that.
       		'label'    => esc_html__( 'Screenshot', 'wp-schema-pro' ), // Label to display in Mapping fields
       		'type'     => 'text', // text/date/image
       		'default'  => 'none',
       		'required' => true, // true/false.
       	);
       	$fields['bsf-aiosrs-software-application']['subkeys']['author'] = array( // bsf-aiosrs-book used for Book, bsf-aiosrs-event will for Event like that.
       		'label'    => esc_html__( 'Author', 'wp-schema-pro' ), // Label to display in Mapping fields
       		'type'     => 'text', // text/date/image
       		'default'  => 'none',
       		'required' => true, // true/false.
       	);
   
   
       	return $fields;
       }
   
       /**
        * Mapping extra field for schema markup.
        *
        * @param  array $schema Schema array.
        * @param  array $data   Mapping fields array.
        * @return array
        */
       function my_extra_schema_field_mapping( $schema, $data, $post ) {
   
           if ( isset( $data['featureList'] ) && ! empty( $data['featureList'] ) ) {
   
       		$schema['featureList'] = esc_html( $data['featureList'] );	
       	}
       	if ( isset( $data['screenshot'] ) && ! empty( $data['screenshot'] ) ) {
       		// For date/text type field
       		$schema['screenshot'] = esc_html( $data['screenshot'] );
   
       	}
       	if ( isset( $data['author'] ) && ! empty( $data['author'] ) ) {
       		// For date/text type field
       		$schema['author'] = esc_html( $data['author'] );
   
       	}
       	return $schema;
       }
       ```
   
    -  This reply was modified 6 years, 2 months ago by [koreacito](https://wordpress.org/support/users/koreacito/).
    -  This reply was modified 6 years, 2 months ago by [tobifjellner (Tor-Bjorn “Tobi” Fjellner)](https://wordpress.org/support/users/tobifjellner/).
 *  Plugin Support [Team Brainstorm Force](https://wordpress.org/support/users/brainstormteam/)
 * (@brainstormteam)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/schema-pro/#post-12640303)
 * Perfect, [@koreacito](https://wordpress.org/support/users/koreacito/)
 * Glad that the issue has been fixed. 🙂
 * Do let us know if there’s anything else we can help you with.

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

The topic ‘Schema Pro’ is closed to new replies.

 * ![](https://ps.w.org/all-in-one-schemaorg-rich-snippets/assets/icon-256x256.png?
   rev=3287803)
 * [Schema - All In One Schema Rich Snippets](https://wordpress.org/plugins/all-in-one-schemaorg-rich-snippets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/all-in-one-schemaorg-rich-snippets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/all-in-one-schemaorg-rich-snippets/)
 * [Active Topics](https://wordpress.org/support/plugin/all-in-one-schemaorg-rich-snippets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/all-in-one-schemaorg-rich-snippets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/all-in-one-schemaorg-rich-snippets/reviews/)

## Tags

 * [schema pro](https://wordpress.org/support/topic-tag/schema-pro/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 3 replies
 * 2 participants
 * Last reply from: [Team Brainstorm Force](https://wordpress.org/support/users/brainstormteam/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/schema-pro/#post-12640303)
 * Status: resolved