WPSEO_Frontend doesnt return correct results
-
Since version 1.7.2 WPSEO_Frontend doesnt return the correct results
Like the person in the link below I was using
<?php $object = new WPSEO_Frontend(); echo $object->metadesc( false ); ?>
https://wordpress.org/support/topic/code-to-display-meta-description-on-front-end-broke-1?replies=6
I changed it as suggested to
$object = WPSEO_Frontend::get_instance();This worked initially but since the recent updates to the plugin it no longer works properly. I am using this on a home page to get the meta descriptions of other posts to display on that home page.
Since the recent updates (1.7.4 onwards possibly before that). The meta description retrieved is always that of the home page not the current post.
The topic ‘WPSEO_Frontend doesnt return correct results’ is closed to new replies.