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 line747
, 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.
- The topic ‘Post title may output as "false" when not specified in aiosp (With Fix)’ is closed to new replies.