Getting yoast title for custom taxonomy

I have created a theme template for a custom taxonomy. The HTML title tag has the yoast title that I set when editing the taxonomy. I want to also make this the title of the page. I cant seem to access the title meta value in order to do this. Where is it stored?

$yoast_title = get_term_meta($current_term_obj->term_id, '_yoast_wpseo_title', true);

The code above returns nothing. I checked the meta table in the DB and there is nothing in there either.

0

Leave a Comment