• Resolved jaboli

    (@jaboli)


    Hello
    At first I should thank you about this great plugin
    I installed it and did all step well and now there are some meta item tag on link and title but I want to use it also for author name and description
    I used meta post box but there is no meta item on them
    can you help me?!
    https://techmagz.ir

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

    (@hishaman)

    Do you mean the Article author name and description?

    You can override these values by filtering its output, see example code here.

    Example code (use in your Theme’s functions.php file):

    add_filter( 'schema_wp_author', 'schema_author_output_modify_8198771356' );
    /**
     * Modify The Author Schema Markup in Schema Plugin
     *
     * @param array $author
     * @return array 
     */
    function schema_author_output_modify_8198771356( $author ) {
      	
    	// Modify author name
    	$author['name'] = 'Another Name';
    	
    	// Modify description
    	$author['description'] = 'Some other description';
    	
    	// Remove Author URL from the markup
    	unset($author['url']);
    	
    	// Return the array
    	return $author; 
    }

    I hope this helps.

    Thread Starter jaboli

    (@jaboli)

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘schema for author and description’ is closed to new replies.