Support » Plugins and Hacks » Returning the Meta Description
3 years, 7 months ago
Version 0.2.3 says
Meta Description can now be returned, using $wpseo_front->metadesc( false ); for use elsewhere.
Do you have a recommended method / example of using this ?
Have tried this which I found in some other threads but it produces nothing.
$wpseo = new WPSEO_Frontend();
echo $wpseo->metadesc( false );
echo $wpseo_front->metadesc( false );
produces an error
Fatal error: Call to a member function metadesc() on a non-object
Well I found this in another post
and this seems to work.
$metadesc = wpseo_get_value(‘metadesc’);
Be interested to know what the official usage should be.