Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi mikhak,

    You can add things to the description by using the aioseop_description filter. Example:

    add_filter( 'aioseop_description', 'mikhak_aioseop_description' );
    
    function mikhak_aioseop_description( $description ) {
    	if ( is_single() ) {
    		$categories = get_the_category();
    		$category = '';
    		if ( count( $categories ) > 0 ) {
    			$category = $categories[0]->cat_name;
    		}
    		if ( !empty( $category ) ) $description .= " {$category}";
    	}
    	return $category;
    }
    Thread Starter mikhak

    (@mikhak)

    thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘how to inser category title in description ?’ is closed to new replies.