WordPress.org

Support

Support » Plugins and Hacks » Post title may output as "false" when not specified in aiosp (With Fix)

Post title may output as "false" when not specified in aiosp (With Fix)

  • If you do not specify an AIO SEO Pack title for a post, the title gets set to the string “false” because WordPress is a piece of shit. To fix this, you can add the following to the function rewrite_title, at line 747, just right before the commented out codeblock (seriously? delete commented code and use version control if you might want that later!)

    if (empty($title) || $title == 'false') {
        $title = $post->post_title;
    }

    Note that this means you cannot have a post named false, although if you’re doing that AND you are trying to optimize for SEO, you’re gonna have a bad time.

    http://wordpress.org/extend/plugins/all-in-one-seo-pack/

  • The topic ‘Post title may output as "false" when not specified in aiosp (With Fix)’ is closed to new replies.