• Resolved PreMadeWeb

    (@premadeweb)


    Hello,
    Thank you for the very lightweight and useful plugin.
    I have an issue with UNTITLED title in metatitle on certain pages, the one which is attached to the question and all the user profile pages. Is it possible to fix this issue?

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Sybre Waaijer

    (@cybr)

    Hello! And cheers ??

    It seems that the post type for the “Buy Points” system isn’t registered wholly or correctly with WordPress. Unfortunately, this makes it impossible for us to retrieve the title; as such, “Untitled” is used.

    You may be able to fix it by disabling SEO for it via “SEO Settings -> General -> Post Types”. Then, the implementing plugin (or theme) can take over again.

    Now, I don’t know which post type you must deactivate, or if it’s even registered as one, as it’s locked behind a paywall.

    You may also want to reach out to 2codeThemes’ support; as they’ve implemented this system.

    Thread Starter PreMadeWeb

    (@premadeweb)

    Hello,
    The matter is that if I disable SEO for the plugin which is called Descy (Q&A plugin) – all the other pages will be out of reach of SEO framework, most of them doing very good with your plugin. SEO framework doesn’t work only with Buy-points page and all user profile pages.
    Is it possible to exclude the mentioned above pages from SEO Framework only?

    P.S. The autor of my theme and plugin already tried to fix this issue, but he managed to do nothing, he actually sent me to you ??

    • This reply was modified 5 years, 5 months ago by PreMadeWeb.
    Plugin Author Sybre Waaijer

    (@cybr)

    Hello ??

    Yes, there is a way, but it requires some custom coding.

    Add this to your child theme’s functions.php file, and the page should be excluded from The SEO Framework:

    add_action( 'parse_request', function( $wp ) {
    
    	if ( ! is_admin() && isset( $wp->request ) ) {
    		if ( 'buy-points' === $wp->request ) {
    			add_filter( 'the_seo_framework_post_type_disabled', '__return_true' );
    		}
    	}
    } );

    P.S. I see you have a “relative URL” plugin enabled. It invalidates the canonical URL ?? The canonical URL must remain an absolute, complete URL.

    Thread Starter PreMadeWeb

    (@premadeweb)

    Your snippent works just fine for Buy-points page, but it doesn’t work for profile pages, like this one, for example https://move2thailand.com/profile/groupfinifa1987/. Can you help with them too please?

    I double checked, there is no “relative URL” plugin on my site. Can you tell me how to disable it?
    Thank you!

    • This reply was modified 5 years, 5 months ago by PreMadeWeb.
    Plugin Author Sybre Waaijer

    (@cybr)

    Hello again!

    This may help, instead. You can extend the $pages_to_exclude array indefinitely with any problematic endpoint:

    add_action( 'parse_request', function( $wp ) {
    
    	// Add any page you wish to exlude here on a new line; use * as a wildcard.
    	$pages_to_exclude = [
    		'buy-points',
    		'profile/*',
    	];
    
    	if ( ! is_admin() && isset( $wp->request ) ) {
    		if ( preg_match( '#^' . str_replace( '*', '.*?', implode( '|', $pages_to_exclude ) ) . '$#i', $wp->request ) ) {
    			add_filter( 'the_seo_framework_post_type_disabled', '__return_true' );
    		}
    	}
    } );

    Please keep in mind that the plugin causing all these issues built a layer most unrecognizable on top of WordPress, and it filters everything attached (on the wrong endpoints…) to fix its mess. It’s quite egregious on how common this is. Plugins that appear on www.remarpro.com that do this are often marked with a dozen or more one-star ratings–don’t ask me which ??

    In any case, you may be better off excluding the post type all-together–if it’s assigned as one in the first place. You may find an option for it under “SEO Settings -> General -> Post Types”, which saves you the hassle of maintaining code. It’s probably marked as wpqa.

    As for the “relative URL” plugin, I don’t know which it is. It’s probably one which promises to fix all “mixed content” issues; or, otherwise, it may be a toggle hidden somewhere in an optimization plugin.

    Thread Starter PreMadeWeb

    (@premadeweb)

    Everything is fine now. Thank you very much for the fix. This plugin is from Themeforest and a pretty successful one. It has its own SEO functionality built in but less comprehensive than yours. The author says that it works fine with Yoast SEO, but I like The SEO Framework much more.
    As for “relative URL”, I guess Easy SSL plugin could have done this, but it’s uninstalled long ago.
    Anyway way, you did a great job. Thanks alot for your support!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘UNTITLED title on some pages’ is closed to new replies.