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
Meta descriptions aren't output when using ACF macro in Description Format #960
When you use the ACF macro (https://semperplugins.com/documentation/advanced-custom-fields-integration-with-title-format-fields/) in the Description Format field then no meta description is output unless content exists on the post and Autogenerate Descriptions is enabled.
To reproduce this, create a custom post type and then use Advanced Custom Fields to create a field called Custom Description.
I believe what is happening here is that when we generate meta descriptions we run through to see if there is content and if there's no content we don't do anything. What we need to do is check to see if there is a custom field before returning nothing.
See also #959