WordPress.org

Ready to get started?Download WordPress

Forums

All in One SEO Pack
Post title may output as "false" when not specified in aiosp (With Fix) (1 post)

  1. jose.sg
    Member
    Posted 1 year ago #

    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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic