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.
289
questions
-2
votes
0
answers
14
views
How can I add amount of posts in a category as variable in yoast seo? [closed]
I want to add a yoast seo variable that will show me the amount of posts in that page/category
I want to add a yoast seo variable that will show me the amount of posts in that page/category, for ...
0
votes
1
answer
22
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
42
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
19
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
64
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
32
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
320
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
0
answers
30
views
How to render YOAST SEO variables?
I need to write meta tag for a book page "[book-name] [parent category]". So I write
%%term_title%% %%parent_title%%
Only %%term_title%% is rendered. I've tried %%category%%, %%...
0
votes
0
answers
103
views
Display parent terms in yoast BREADCRUMBS on product page woocommerce
I have spent hours to find a solution but couldn't
Does anyone know how to append parent terms in yoast breadcrumbs?
Current situation - I have assigend a child term taxonomy to the product and I see ...
0
votes
1
answer
315
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
423
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
80
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
262
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 ...
0
votes
0
answers
144
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
562
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 ...
0
votes
0
answers
167
views
Shows missing field item in breadcrumb schema
Google search console shows the following issue while inspecting all the url of the website.
missing field “position”
either “name” or “item.name”should be specified
As per the recommendation for ...
0
votes
0
answers
141
views
Elementor Single Post Template does not apply to primary category
I have this website where I use the Elementor Single Post template to assign different layouts based on the primary category of the post (by primary category, I mean using Yoast). It works fine if the ...
0
votes
2
answers
937
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(...
0
votes
0
answers
64
views
Is it possible to rename Wordpress native sub-sitemap (with Yoast SEO plugin installed)?
I have a WP website with the Yoast SEO plugin installed. I need to add a new post type, coincidentally named author. Changing it is highly undesirable due to business logic. The problem occurred ...
0
votes
0
answers
23
views
Copy the product title value into YoastSEO title
I can't copy the product title into the title field of Yoast SEO with my Snippet in PHP. In practice, the value that I copy is replaced by the one present before clicking Save on the product ...
0
votes
0
answers
51
views
duplicate the link with adding a prefix to one of them in the xml maps in the Yoast SEO plugin
This code is to duplicate the link with adding a prefix to one of them in the xml maps in the Yoast SEO plugin.
function alyaa_yoast_multilingual( $url, $type ) {
$prefix = 'en'; // Replace 'en' ...
0
votes
0
answers
83
views
Adding custom vars to Yoast SEO
I have some code using wpseo_register_var_replacement that registers new variables (e.g. %%my_custom_var%%) to be replaced within the Yoast fields.
I want to know how to make %%my_custom_field%% ...
0
votes
0
answers
165
views
How to create Yoast SEO breadcrumbs Home > Link > ... > Current
I need help to create breadcrumbs with Wordpress Yoast SEO plugin like: Home > Link > ... > Current Page.
Any ideas on how it could be done?
1
vote
0
answers
100
views
Setup WP Rest API to fill Yoast field
Could you please help me with the following matter?
I'm looking to fill Yoast field using Wordpress Rest API, but I can't find the right presenter for data.
Here a sample of the code I'm using :
`...
-1
votes
1
answer
32
views
how can I replace the URL on search engines with the business name?
I'm building a site and I've noticed that when I search my site's name on google, unlike other sites my websites Url is displayed instead of the business title.
Can somebody please help me figure this ...
0
votes
1
answer
273
views
Altering custom taxonomy urls in Wordpress Yoast XML sitemap
I am trying to alter the url structure in the standard sitemap page produced by YOAST SEO plugin in Wordpress. I am able to alter Custom Post type sitemap using the below code, but I am not able to do ...
0
votes
0
answers
58
views
Linkedin post inspector is not matching the correct OG:title value
Im using Wordpress and Yoast SEO plugin on my site.
This is my current meta tags structure, including title tag:
<!-- This site is optimized with the Yoast SEO Premium plugin v16.9 (Yoast SEO ...
0
votes
2
answers
591
views
Featured image not showing on LinkedIN post. Tried everything with DIVI support desk but no succes
Can someone maybe help me investigate this problem? We have added a few different code lines in the head and in the PHP.
The support desk advised me to ask my question here.
Is someone able to have a ...
0
votes
2
answers
57
views
Any way to get two functions to work on the same request?
I'm trying to remove the Yoast schema on posts and pages in my functions.php. But, one will work but together they won't. Any way to get this to work together?
Here's what I have tried so far:
//...
1
vote
1
answer
99
views
Is 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 ...
0
votes
1
answer
398
views
LinkedIn Thumbnail Image Not Appearing
Issue: LinkedIn does not generate a thumbnail image when sharing a blog post. Here’s an example blog post: https://blog.terkel.io/12-tips-to-improve-underperforming-blog-posts/
We have:
Upgraded to ...
0
votes
0
answers
44
views
Subpages of my homepage are still displayed in Google despite noindex
I have a WordPress website (https://www.thorsolutions.at) and I want some subpages like the imprint, my privacy policy, my conditions (https://www.thorsolutions.at/datenschutz/) and some testing pages ...
0
votes
0
answers
42
views
Yoast Schema In Category
I would like to remove the Yoast schema output only in my category pages.
Not the metatag just the scehma script
Just asking if it can be done and how.
I have tried a few filters but they remove ...
0
votes
0
answers
84
views
Create REST API endpoint for indexables - Yoast SEO in Wordpress
Has anyone create a REST API endpoint in YOAST SEO. I need to fetch all the data from yoast seo and return as JSON format. Any one who done this please support.
Thank you
0
votes
1
answer
947
views
How to get SEO meta tag in Rankmath
I'm pretty new to WordPress plugin development. I am trying to move from Yoast to Rankmath. I have a question about get seo meta tag in Rankmath.
In Yoast, I can get SEO meta tag (for example title ...
0
votes
0
answers
431
views
Adding YOAST Open Graph Image programmatically
I have a problem regarding the YOAST:og images. Normally you would have to add an image manually for each post/CPT post, but I would like to add the whole thing dynamically for a CPT post. It should ...
0
votes
0
answers
408
views
How to solve this error “Optimize SEO Data” in wordpress
want to migrate from All In One SEO (AISEO) to Yoast to have better structured results. However, the migration tool is not functioning due to a bug: https://github.com/Yoast/wordpress-seo/issues/16518
...
0
votes
0
answers
234
views
how to make yoast seo read text from custom fields in custom post type
I have a WordPress website, in the website I am using a theme that defines a custom post called Recipe that used to add data for Food Recipe like steps and description for each stem and show it in a ...
0
votes
1
answer
942
views
Yoast SEO meta description not saving
I generate a Focus Keyphrase and Meta Description in Yoast SEO meta box for my Home Page. But when I exit the editor, if I go back to the Home Page, the Focus Keyphrase and Meta Description have ...
0
votes
0
answers
112
views
Bing webmaster tool is unable to fetch robots.txt of my website while google is able to fetch
When I am checking my robots.txt file in Bing webmaster tool robots.txt Tester it's showing an error
robots.txt is not found.
While my robots.txt is available in the root directory and accessible in ...
0
votes
0
answers
61
views
how to enable sidebar of Yoast SEO in WordPress
I am creating a post but I can't see the sidebar of Yoast SEO.
I know that if you cannot see the sidebar, click on the Yoast icon in the upper right corner, and the sidebar will appear. But i haven't ...
-1
votes
1
answer
64
views
how to get object_id from Post_id in from database in WordPress?
I am trying to build a theme and for that i need to write a query to get seo details from yoast.
I look into the table and i found every thing in yoast is mapped with object_id.
I am not able to ...
0
votes
1
answer
146
views
How to create a custom sitemap of multiple subdomains?
how can I achieve a certain well structured layout in the Google search results as presented below? I am working with multiple Wordpress instances on several sub domains (not a multisite). Google does ...
0
votes
1
answer
255
views
Yoast wpseo_title visible in page Yoast SEO section
I want to populate the Yoast SEO title with a custom generated text string (functions.php).
The following add_filter function does provide the right output in my page's sourcecode.
function ...
-1
votes
1
answer
230
views
Weird redirections to URL with -
I'm getting weird redirections which aren't set up.
domain/sensual-masage → domain/sensual-masage-
There's problem with indexing the broken links with 301 redirections.
But there's not any ...
0
votes
1
answer
506
views
Get decoded title from Yoast SEO
Inside the Yoast settings, there are tags such as: Term Title, Page, Sitename etc.
And you can add them to title fields inside castom terms.
For example I want to get Woocommerce category Yoast title:
...
0
votes
1
answer
781
views
WordPress - Yoast Disable specific page href link in breadcrumb trail, but don't remove text
Using Yoast to generate the breadcrumb trail, I can't figure out how to remove just the HREF attribute, so the breadcrumb is just text. I'm using custom links to organize the site content. I put in ...
0
votes
1
answer
223
views
Wordpress shortcode not rendering in Yoast og:title
I have a simple shortcode which i use on post titles:
add_shortcode('year', 'year_shortcode');
function year_shortcode() {
$year = date('Y');
return $year;
}
add_filter( 'single_post_title', '...
-1
votes
1
answer
676
views
Creating breadcrumbs using custom post type with custom taxonomy pods - WordPress
I've searched for a solution to add breadcrumbs using pods plugin to create custom post type with custom taxonomy.
0
votes
1
answer
555
views
All xml file is redirected to my home page on nginx wordpress yoast
Hello all my XML files are redirected to the home page, I added this in Nginx as recommended on this page: https://yoast.com/help/xml-sitemaps-nginx/
#Yoast SEO Sitemaps
location ~ ([^/]*)sitemap(.*)....