Mam problem z wtyczką, wcześniej mi działało nadpisywanie tagu TITLE, obecnie już nie. kod źródłowy funkcji:
function twentytwelve_wp_title1234( $title, $sep ) {
if( ( $numpages > 1 ) && ( ! is_home() ) )
{
$my_postid = get_the_ID();
$content_post = get_post($my_postid);
$content = $content_post->post_content;
{
foreach ($matches[1] as $key=>$val) $$val = $matches[2][$key];
}
for( $i = 1; $i < $numpages; $i++ )
{
if($i==$page-1) return ${'rozdzial_'.$i} . ' - ' . get_the_title( $my_postid ) . ' - Tweaks.pl';
}
return get_the_title( $my_postid ) . ' - Tweaks.pl';
}
else
{
return $title;
}
}
add_filter( 'wpseo_title', 'twentytwelve_wp_title1234', 10000, 2 );