Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Issue when using post title as description #986
From preliminary testing, it looks like there may be a bug that causes the meta description to only show up if something is entered in the SEO description field for the post, regardless of the description template settings.
@michaeltorbert I tested on a new install with the current live version of AIOSEOP. There was no meta description until I activated the Autogenerate Descriptions option. Once I activated that option, the meta description was generated from my post excerpt or the post content as expected.
I then changed the Description Format to %post_title% and got the following meta description:
The above is the post title and site title which is a potential issue because I didn't use %blog_title% in the Description Format field. If I use %post_title% | %blog_title% in the Description Format field then I get the site title output twice.
I also tested with %wp_title% and that worked perfectly fine.
In fact I tested all the supported strings listed in the help for the Description Format field and they all worked fine with that one exception of the %post_title% including the site title.
The only other issue was that the placeholder text in the Description field in AIOSEOP did not show the correct description as per the format I selected, instead it always showed my post excerpt text.