fbpx

Reply To: Filters Widget

HomeSupport forumFilters WidgetReply To: Filters Widget
#13912
Artem Temos
Artem Temos
Keymaster

Hello,

Try to add the following code to the functions.php file in your child theme to fix the bug

function xts_get_document_title() {
	$title = wp_get_document_title();
	$post_meta = get_post_meta( xts_get_page_id(), '_yoast_wpseo_title', true );
	if ( property_exists( get_queried_object(), 'term_id' ) && function_exists( 'YoastSEO' ) ) {
		$taxonomy_helper = YoastSEO()->helpers->taxonomy;
		$meta            = $taxonomy_helper->get_term_meta( get_queried_object() );
		if ( isset( $meta['wpseo_title'] ) && $meta['wpseo_title'] ) {
			$title = wpseo_replace_vars( $meta['wpseo_title'], get_queried_object() );
		}
	} elseif ( $post_meta && function_exists( 'wpseo_replace_vars' ) ) {
		$title = wpseo_replace_vars( $post_meta, get_post( xts_get_page_id() ) );
	}
	return $title;
}

Kind Regards

Sign in

No account yet?

Create an Account