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

    This is possible by filtering the title; try adding the following code into a plugin or in the functions.php of your theme:

    add_filter( 'aioseop_title', 'joe_aioseop_shorter_title' );
    
    function joe_aioseop_shorter_title( $title ) {
        global $aiosp;
        if ( !empty( $aiosp ) ) {
            $title_length = 50;
            if ( strlen( $title ) > $title_length ) $title = $aiosp->trim_excerpt_without_filters( $title, $title_length ) . '...';
        }
        return $title;
    }
    Thread Starter joswellmaxeph

    (@joswellmaxeph)

    Thanks! This worked great 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘make page titles shorter for posts’ is closed to new replies.