Add Another Meta Keyword to Each Post

add_filter( ‘aioseo_keywords’, ‘aioseo_filter_keywords’ ); function aioseo_filter_keywords( $keywords ) { if ( is_singular() ) { $keywords = explode( ‘,’, $keywords ); array_push( $keywords, ‘anotherkeyword’ ); $keywords = implode( ‘,’, $keywords ); } return $keywords ; }Continue reading

Change OG Title of a Specific Post

add_filter( ‘aioseo_facebook_tags’, ‘aioseo_filter_facebook_title’ ); function aioseo_filter_facebook_title( $facebookMeta ) { if ( is_singular() && 14 === get_the_ID() ) { $facebookMeta[‘og:title’] = “A different title”; } return $facebookMeta; }Continue reading