Questions tagged [yoast]
Yoast is a WordPress plugin for website and search engine optimization. Use this tag if you have a question that is directly related to Yoast.
yoast
288
questions
2
votes
1
answer
110
views
LinkedIn API - Server 500 Error on some pages
I have a wordpress site built with a custom theme - I'm having problems getting previews to show while sharing some pages on LinkedIn (while they work fine in Facebook)
Using the LinkedIn Post ...
0
votes
0
answers
13
views
WordPress Gallery thumbnail and single post issue after migrating to new host
After migrating to new host,i am facing a strange issue of Media image file's thumbnail while uploading to media gallery and also during editing or adding new blog post. The exact problem is as ...
0
votes
0
answers
12
views
Why is my WordPress website using page link indexing with '/?p=123', and how can I resolve this issue?
My website has many pages indexed with URLs like '/?p=123'.
Upon checking, all these URLs work correctly and redirect to the appropriate pages.
However, these URLs are not found in the sitemap. We ...
1
vote
0
answers
41
views
How can I move the Yoast Schema.org markup to the bottom of the head?
I'm trying to figure out how to move the Schema.org markup that Yoast outputs to the bottom of the head.
The only filter I've been able to find only removes the :
add_filter( 'wpseo_json_ld_output', '...
0
votes
1
answer
187
views
Looking for a free way to add breadcrumbs to my website, I still haven't found a consistent way with YOAST SEO on my Elementor Pro website
So I have been trying with Rank Math, Yoast, with the little code embedded, but nothing seems to be clear in terms of letting WordPress/Elementor the structure of my website, which parent pages after ...
-1
votes
1
answer
79
views
I am trying to override Yoast breadcrumbs using the PHP $_SERVER['HTTP_REFERER']but am getting an index error
I am getting an undefined array error. The goal here is to override the second link to simply go back one page. An example is
Custom Templates > Category > Template
I added the following code ...
0
votes
0
answers
24
views
How to configure YoastSEO for redirecting duplicate subdirectory paths in WordPress Multisite
I'm working with a WordPress Multisite setup where one of the subsites is located in a subdirectory named /en/. I've encountered an issue where URLs that include a duplicate subdirectory path, ...
0
votes
0
answers
43
views
How to configure Yoast to accept a URL to a remote image for the social image
I'm running Yoast SEO plugin on my Wordpress site. I'm using the plugin mainly to be able to set the og:image, og:title and og:description for each page. By default, you can only set the "Social ...
0
votes
0
answers
29
views
"Page not found" due to modification of slugs in Wordpress, how do I fix it?
When performing an SEO optimization on Wordpress (with the Yoast plugin) I modified some slugs. Now within those modified pages I find links that take me to "page not found", broken links. I'...
0
votes
0
answers
33
views
Have a issue with the structured data of my website
My website is on WordPress and has a Yoast plugin for SEO.
Problem:- My website it changed but Google but in result it shows the older pages that I had on my older website as shown in this image and I ...
0
votes
0
answers
89
views
Cannot update Yoast SEO post meta to no index based on ACF field
I am trying to update Yoast post meta to set no index based on an ACF field, but it is not working anymore. Setting an ACF field is way easier for clients than going to the Yoast SEO plugin settings ...
0
votes
0
answers
14
views
Get Width of Title Like Yoast SEO does
Based on Yoast SEO, it determine whether the title is too long based on its width instead of number of characters.
So, how to know the font, font size, and font style used in Google search results?
...
0
votes
1
answer
38
views
The title displayed on the search engine is false WORDPRESS
I'm new to the world of WordPress. I've installed the YOAST SEO extension, and in the settings, I've configured the site to be called "Lottie - Restaurant cuisine fraîche." settings yoast
...
2
votes
0
answers
91
views
Update Yoast Focus keyphrase _yoast_wpseo_focuskw via cURL
I am trying to update the Focus keyphrase for a post via cURL, however, it does not insert nor update the Post.
Here is my curl. Any ideas what I'm missing, or what am I doing wrong? (I'm trying ...
0
votes
0
answers
72
views
How to use Yoast SEO Premium properly
The Yoast plugin creates its own redirect map when the URLs of published posts are changed. We need a function that will run after changes are made to the redirect map.
But for some reasons, I can't ...
0
votes
0
answers
72
views
Adding a Yoast Canonical when a new post is published in WordPress
I need to add a Yoast canonical tag only when a post is published. If the post is already published and updated I do not want to update the canonical tag. I'm using add_post_meta but the function only ...
0
votes
0
answers
48
views
Yoast SEO title displaying %% in browser
We have a script that displays the Yoast SEO title and if no SEO title exists, then we just default to the page title:
function replace_wp_title_with_yoast_seo_title($title) {
$...
0
votes
1
answer
88
views
YOAST 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 ...
0
votes
0
answers
296
views
Google 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: *...
0
votes
0
answers
75
views
Wordpress: 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.1
PHP version: 7.3.33
Fatal error: Trait '...
0
votes
1
answer
137
views
Is 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 ...
0
votes
1
answer
81
views
Get 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:
<?php
return [
"post_type" => [
"prime-...
0
votes
1
answer
985
views
WordPress Yoast SEO- dynamic title and description in snippet based on GET parameter
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 ...
0
votes
1
answer
797
views
Can you change the Yoast SEO Title manually?
Yoast SEO Image
I want to change the seo title automatically when I install the plugin.
Is there a way to change the code in plugins folder?
From %Title% %Page% %Separator% %Site Title%
into %Title% %...
1
vote
2
answers
880
views
How to customize Yoast Schema Breadcrumbs output in WordPress
By using a code snippet I try to remove a schema output from Yoast for breadcrumbs but I can't seem to fix it. This is the code provided by Yoast SEO:
// functions.php
add_filter( '...
-1
votes
1
answer
189
views
some random characters instead of page URls in sitemap
I'm an SEO expert.
I am doing some SEO works on a website but after 3 months I checked site map and see something irregular
my xml sitemap is like this:
<sitemap>
<loc>https://zargarbike....
0
votes
2
answers
511
views
How set meta description for Yoast SEO plugin from Open AI in WordPress
I have recently developed a WordPress plugin that utilizes Open AI to generate descriptions and other data for products. One of the challenges I'm facing is integrating the generated meta descriptions ...
1
vote
0
answers
268
views
Is there a way of getting the metadata of a page using yoast in headless wordpress with wpgraphql and next.js?
I've been wondering if there is a way of getting the metadata for a page (not a blog post) using yoast seo in headless WordPress with wpgraphql and next.js. When I say page I mean like the Home page, ...
1
vote
1
answer
2k
views
Wordpress -> Yoast SEO settings -> error: Cannot read properties of undefined (reading 'prevOffset')
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 ...
2
votes
3
answers
2k
views
How to fill the YOAST SEO Meta data when creating a post using API
I'm trying to insert meta description for my Wordpress post, but the meta-description is always empty.
This is my code:
post_data = {
'title': title,
'content': markdown.markdown(...