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

  1. jose.sg
    Posted 3 years 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.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • All in One SEO Pack
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic