Can’t print Yoast meta description into page template (syntax error, unexpected ‘.’)

Here is the relevant portion of my page template code: $yoast_meta = get_post_meta($post->ID, '_yoast_wpseo_metadesc', true); function my_service_template_footer_data() { echo "<script type='application/ld+json'> { '@context': '', '@type': 'Service', 'serviceType': ' " . get_the_title() . " ', 'description': ' " . $yoast_meta; . " ', 'provider': { '@type': 'LocalBusiness', 'name': '…', 'address': { '@type': 'PostalAddress', 'addressLocality': '…', 'addressRegion': … Read more

Blog home page has canonical link that is incorrect. Do not see where to change this

As part of our website we have a wordpress blog in a subdirectory. I scanned our main site for broken links. The scan included the wordpress blog in the subdirectory. Some “broken links” showed up that have never been present before. The problem is that the “otherblog” has nothing whatsoever to do with our website–it is a separate property. We don’t know how the value for the “otherblog” is getting in.

Add Page number to Meta Description in WordPress SEO by Yoast

The code below is from WordPress SEO plugin by Yoast. I am trying to add the page number to the Meta description on paginated posts (to avoid duplication issues with Google). function metadesc( $echo = true ) { if ( get_query_var('paged') && get_query_var('paged') > 1 ) return; global $post, $wp_query, $page; $options = get_wpseo_options(); $metadesc … Read more