• When i dont have this plugin enabled i am able to set the page title using the following code.

    add_filter('wp_title', 'assignPageTitle');
    	function assignPageTitle($content){
    	  return "Title goes here";
    	}

    When i enable the code i get “Page not found” on every custom page, even though the page has content. I am not using wordpress post objects on any of these pages, i am getting data from an external database.

    How do i override the title that yoast is generating so that i can display the title that i want for these pages? or alternatively, how do i get Yoast to stop generating a page not found error for all of these page?

    Im using custom php pages that hook into my theme using get_header(), get_footer(). The content in the middle is entirely custom and doesnt use any wordpress data.

    https://www.ads-software.com/plugins/wordpress-seo/

  • The topic ‘How Can i Override The Page Title Generated By Yoast?’ is closed to new replies.