WordPress Yoast SEO- dynamic title and description in snippet based on GET...
I have a WordPress site with Yoast SEO installed on it. I have a certain page, /charts, which accepts the GET parameter id. Based on the value of id, I want to load a title and description from a JSON...
View ArticleWordPress: Get Yoast SEO title for custom taxonomy
I'm trying to get the SEO title from a custom taxonomy.Here's my current code for it:$my_yoast_wpseo_title = get_term_meta( $term_id, '_wpseo_title', true );if( $my_yoast_wpseo_title ){ echo...
View ArticleGet value of Custom Taxonomy from Custom Post type
I am using two loops on a page, one is grouped posts using 'for each' and one is not.They both use the same facetwp query which is:<?phpreturn ["post_type" => ["prime-ministers" ],"post_status"...
View ArticleIs the canonical link not working properly?
I have added canonical links to all pages of my website. Let's take the home page as an example.Let's say https://sample.com is entered there. Here I used yoast wordpress plugin.When you go to the view...
View ArticleWordpress -> Yoast SEO settings -> error: Cannot read properties of undefined...
I simply wanted to go over the settings of Yoast SEO on my site, and got to this error message:Cannot read properties of undefined (reading ‘prevOffset’)This error appears on every page of the Yoast...
View ArticleHow do I remove the "Yoast SEO Schema enhancements" box from my profile edit...
How do I remove the "Yoast SEO Schema enhancements" box from my profile edit (backend)?Yoast SEO Schema enhancements
View ArticleI want to fetch backend seo yoast meta
I want to fetch backend seo yoast meta description in wordpress custom post type,but if yoast meta description is empty it should fetch text from tag anybody can suggest how to do it
View ArticleHow to change specific primary category name?
I have more than one category name in the post and I want to change specific primary category name to be normal category and then normal category to be primary category.Let's say I have sponsored...
View ArticleWordpress custom hierarchy of breadcrumbs (and no hierarchy of slug / URLs)
I am trying to create a hierarchy of pages in Wordpress for the breadcrumbs. The simplest way to do it, is by using the "Parent Page" attribute. However, when using this feature, it also creates a...
View ArticleHow to use %%currentdate%% variable with Yoast SEO WordPress Plugin
I am using Yoast SEO free version wordpress plugin. I am unable to use %%currentdate%% variable with yoast for Search Engine Title or Meta Description. Is there any way to activate this variable?...
View ArticleWooCommerce: Add brand and gtin to product schema markup in Yoast
I want to add a brand and a gtin to my product markup in WooCommerce.At the moment the Yoast SEO plugin already adds a lot of markup.But it only has the option to add the brand with a product...
View ArticleWordpress: Fatal error: Trait "YoastSEO_Vendor\Psr\Log\LoggerTrait" not found
I was trying to restore the backup blog, but when I restored, this message appeared when I tried to access any page, including admin.Wordpress version: 6.3.1PHP version: 7.3.33Fatal error: Trait...
View ArticleRemove datePublished and dateModified from Yoast SEO plugin generated Article...
I'm trying to remove date properties from Article schema generated by the Yoast SEO plugin.In their developer docs the wpseo_schema_article filter is set as an example for manipulating with Article...
View ArticleGoogle Search Console - Excluded by noindex tag
I have a WordPress site with pages that Google Search Console (GSC) reports as "Excluded by ‘noindex’ tag"The robots.txt file accessed by the Yoast plugin is as follows though:User-Agent: *Allow:...
View ArticleIs it possible to get Yoast primary category from product ID alone
Is it possible get Yoast Primary Category from Product ID ($product->get_id()) alone?I've tried$primary_term_id = yoast_get_primary_term_id( 'product_cat', $product->get_id() );but to no avail.
View ArticleYOAST plugin does not work any longer in redirecting images
Since september 12th (this is an estimate) I cannot upload an image in YOAST and have it redirect when uploading the image to facebook. I have checked the changelogs of both YOAST and the graph API of...
View ArticleRemove Yoast Breadcrumb Last Item On Single Pages Only
i got this code from researching and trying to modify it but no luck. I want the last item in yoast breamcrumbs not to appear on single pages only if ( is_single() ) { /*Remove Last item in Yoast SEO...
View ArticleRemove Meta author by code snippet in Yoast WordPress SEO
Is there a way to remove the metadata 'author' code inserted by Yoast SEO in WordPress?<meta name="author" content="login.username" /><!-- / Yoast SEO plugin. -->I have looked through all...
View ArticleGet Yoast WP SEO data by post ID
Since there is no documentation about this, I was wondering in what way it is possible to get filtered Yoast WP SEO data (so not unfiltered _yoast_wpseo metadata) by given post ID.Ideally, I would like...
View ArticleRemove (Or) Empty Duplicate OpenGraph Induced By Unknown Plugin/Theme
I am trying to use Yoast SEO fully. But my theme or some unknown plugins are introducing another opengraph tag section overwriting Yoast's metadata. How do I eliminate the second duplicate set?Here is...
View Article