Problem with Browser Tab Title - Yoast SEO

Please help!

Having a hard time to figure out what’s wrong with the Browser Tab Title in Room type (CPT) single post.

It seems to be showing not the post title, rather the title for another CPT included in the single-room template file.

I can only assume it would he related to modifications to your WP_Query.
Start disabling plugins until you find one causing the issue. Also look for any pre_get_posts actions that might effect things.

1 Like

This happens only when I activated Yoast SEO. The problem disappears when it is disabled. So I don’t think it is a problem with my theme files. Others seem have the same issue with Yoast SEO sometime. But I have not find a real solution yet.

It might have something to do with this:

/**
     * Enable plugins to manage the document title
     * @link https://developer.wordpress.org/reference/functions/add_theme_support/#title-tag
     */
    add_theme_support('title-tag');

This topic was automatically closed after 42 days. New replies are no longer allowed.