: WPSEO_Frontend::metadesc ha quedado obsoleto desde la versión WPSEO 14.0 y no hay alternativas disponibles. in on line
?Manualmente es corregible? ?En la próxima actualización mejorará?
Gracias
]]>$category = get_queried_object();
$cat_id = $category->term_id;
echo get_term_meta($cat_id, ‘_yoast_wpseo_metadesc’, true);
How can I show metadesc in categories?
I detected that is missing a line in plugin for meta description, for page configured as main blog listing.
Variable $desc
in class.metaseo-opengraph.php, in function getHome
always is empty when $mshow_on_front == 'page'
See changes needed:
--- inc/class.metaseo-opengraph.php (revision 1897831)
+++ inc/class.metaseo-opengraph.php (working copy)
@@ -273,6 +273,7 @@
$title = esc_attr(get_post_meta($mpage_for_posts, '_metaseo_metatitle', true));
$page_follow = get_post_meta($mpage_for_posts, '_metaseo_metafollow', true);
$page_index = get_post_meta($mpage_for_posts, '_metaseo_metaindex', true);
+ $desc = get_post_meta($mpage_for_posts, '_metaseo_metadesc', true);
}
Adding this line, the problem of my theme has fixed (description is not shown for page configured in wp-admin as blog page in preferences).
Did you can fix this in next version?
]]>I have created an import script to automatically populate _yoast_wpseo_metadesc, _yoast_wpseo_focuskw
What routine do I call to get Yoast to recalculate the SEO/Readability ratings?
The closest thing I have found to this is code in class-recalculate-scores-ajax.php
Kind Regards,
James
]]>