• Resolved eneri81

    (@eneri81)


    Hi.
    I’ve just installed the plugin and for default settings it looks great.
    I wanted to add a new “Type” called “Events”. But can’t select “Event” as a type. I’ve just the descition between “select one” and “article”.
    Thanks in advance.
    Irene

Viewing 1 replies (of 1 total)
  • Plugin Author Hesham Zebida

    (@hishaman)

    It has been quite sometime, I dropped it accidentally!

    You can add support for a new schema.org type using this filter example:

    add_filter( 'schema_wp_types', 'schema_wp_new_add_schema_type_7623456' );
    /**
     * Add New type to Schema Types options
     *
     * @since 1.0
     */
    function schema_wp_new_add_schema_type_7623456( $options ) {
    	
    	// Change 'NewType' to the actual schema.org type you want to add
    	// Example: Event, Product, JobPosting, ...etc.
    	$options['NewType'] =  array ( 
    						'label' => __('NewType'),
    						'value'	=> 'NewType'
    						);	
    	return $options;
    }

    Link to code gist and documentation for adding support for new schema.org types.

    However, it’s not a straightforward thing, there will be some missing markups that may require additional coding to get it all to work.

Viewing 1 replies (of 1 total)

The topic ‘Select “Event” or other Types’ is closed to new replies.