Filter for canonical
-
Hello. After update 14, the filter for canonical stopped working. Example:
function return_canon () { $canon_page = get_pagenum_link(1); return $canon_page; } function canon_paged() { if (is_paged()) { add_filter( 'wpseo_canonical', 'return_canon' ); } } add_filter('wpseo_head','canon_paged');
How to fix it?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Filter for canonical’ is closed to new replies.