Hi again!
My reply wasn’t that quick, but I appreciate the appreciation ??
There’s a certain order to how a title is created:
- Get the custom title, and apply a filter “custom” to that.
- If a title is found, add optional prefixes, conditional pagination, and optional branding.
- Otherwise, generate a title, apply a filter “generated” to that, and add optional prefixes, conditional pagination, and optional branding.
If you generate a title, then the user should be able to overwrite it via TSF’s interface. It would confuse the user if the interface no longer works as intended. Hence, I rarely suggest using filter “custom.”
If you’re the only user on the site, or if you provide an alternative interface for the custom title or remove the old interface altogether, you can use the “custom” filter: the_seo_framework_title_from_custom_field
. Note that this filter renders useless the title input fields and their character and pixel counters. The SEO Bar should still work accordingly and accept the filtered value, though its explanatory on-hover tooltips may be less accurate.
The description creation order is a little simpler:
- Get the custom description, and apply the filter “custom” to that.
- If no description is found, generate a description, and apply various filters to that.
The same issue concerning custom titles also affects descriptions. Keeping that in mind, use it with caution: the_seo_framework_custom_field_description
.
Ultimately, you should decide whether to remove the custom inputs or overwrite them.
-
This reply was modified 1 year, 7 months ago by
Sybre Waaijer. Reason: clarity