pogrammatically loading title, description, og data etc.
-
Is there any way to programmatically retrieve the title, description or any other meta data as generated by the SEO framework?
I’m trying to add them as extra fields to a REST API endpoint, but I can’t figure out how to get them.
So far, I can get the title from post meta:
$title = get_post_meta($object["id"], "_genesis_title")[0];
And the default title (ignoring post meta):
$title = the_seo_framework()->title_from_cache();
But not the fully generated title as it would appear in a theme.
Same goes for description and the various other meta tags.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘pogrammatically loading title, description, og data etc.’ is closed to new replies.