Questions tagged [plugin-wp-seo-yoast]

WordPress SEO by Yoast is a popular SEO plugin for WordPress. Questions about this and other 3rd party plugins are closed as off-topic here and not in this stacks scope.

Filter by
Sorted by
Tagged with
0 votes
0 answers
11 views

How to create archive child pages with good Yoast SEO meta?

I want to create children pages to some archives on wordpress with Yoast SEO. Today, i have /tags/{tagName} and i want to add sub pages to this archive. The goal is to have: /tags/{tagName} main tag ...
Vexyos's user avatar
  • 1
0 votes
0 answers
20 views

Preview Problem Yoast SEO

The problem is that the preview image/description that shows when sending the link to anyone , for example on whatsapp / messenger it shows the old logo / description and i have already changed that ...
Ahmed Ali's user avatar
0 votes
1 answer
40 views

Yoast SEO canonical URL gets pointed to the homepage

I noticed in Google Search Console that pages are increasingly getting removed from the index due to their canonical. For some reason — it points to the home page for some articles. After some digging,...
dodov's user avatar
  • 197
0 votes
0 answers
112 views

Remove all author names from yoast meta

I am using yoast seo in my wordpress, and it is show the author name in source code if i am activated sharing feature, <meta name="author" content="USERNAME" class="yoast-...
Yehia Gamal's user avatar
-1 votes
1 answer
258 views

Separate Sitemaps for Each Language with Polylang and Yoast SEO

I have a WordPress website with two essential plugins, Polylang for multilingual support and Yoast SEO for sitemap generation. Currently, the sitemap can be accessed through mysite.com/sitemap_index....
user234026's user avatar
0 votes
1 answer
41 views

My wordpress website showing 2 titles in source code how can i fix this issue

My WordPress website shows 2 titles in the source code how can I fix this issue
Iq Control's user avatar
0 votes
1 answer
130 views

Insert meta-description into Yoast-SEO input-field via JavaScript

we're currently working on an extension for the Yoast-SEO WordPress-Plugin. One of the features of this extension requires the meta-description within the Yoast-SEO-area to be replaced via JavaScript ...
Dennis's user avatar
  • 103
0 votes
0 answers
327 views

Remove a specific sitemap from Sitemap_index.xml

i have yoast plugin installed and i have my website sitemap_index.xml as following : This XML Sitemap Index file contains 7 sitemaps. Sitemap Last Modified https://xxxxxx.com/post-sitemap.xml https://...
Mohamed Atef's user avatar
0 votes
1 answer
223 views

Yoasts plugin sitemap not detecting correct category URL format

My client wants the following URL: https://example.com/category-name So for that, I added . in the Category base under Settings > Permalinks and now my Category URL looks like how the client wants ...
Nikita Gupta's user avatar
0 votes
1 answer
473 views

YOAST slug does not take the custom permalink I have made

So I wanted to create custom permalinks for my pages for an SEO project I’m working on. I can customise the permalink fine as I have downloaded a custom permalink plugin, but the YOAST plug-in I’m ...
Frankie Levin's user avatar
0 votes
1 answer
20 views

yoast sitemap xml

the end results contains some empty lines and that's an invalid xml cause. I wanted to find out where those extra lines comes from but there are 100s of places to look into. Is there a way I can hook ...
haluk's user avatar
  • 1
0 votes
1 answer
664 views

wp_get_canonical_url showing first url of the post for custom page

I have created a tag.php page in the theme. It's working perfectly. I am getting the tags post on the page. Now I have added the below link to the header.php page. <link rel="alternate" ...
user9437856's user avatar
1 vote
1 answer
2k views

How to use the Yoast SEO wpseo_canonical filter to set a canonical URL for /, /au/ & /uk/ sites in a MU environment

Our company has markets in USA, UK & Australia. We've just started using WP MU on our development server where the USA/global version is @ www.example.com, and then there are www.example.com/uk/ &...
Steve's user avatar
  • 1,687
0 votes
2 answers
746 views

Display Yoast meta-description `wpseo_desc` within loop of categories and fail silently if no data is set [closed]

I want to output the Yoast SEO category meta-description within a custom loop. Current code (below) works if there is a meta-description present. However, if no category meta-description is set it ...
katiedev's user avatar
1 vote
0 answers
42 views

Overwrite YoastSEO meta-tags with another page's [closed]

I'm writing a custom Wordpress theme and for a specific page I need to overwrite its meta-tags (printed by YoastSEO) with the meta-tags of another page I already know the ID of. I cannot just change ...
cortvi's user avatar
  • 11
0 votes
1 answer
1k views

Yoast Metadata API to adjust/override the meta description

I wanted to use the following function to override the Yoast meta description: add_filter('wpseo_metadesc','custom_meta'); function custom_meta( $desc ){ if (/* do your test here to check ...
Steve's user avatar
  • 1,687
0 votes
0 answers
242 views

Post Thumbnail missing when using webp format while sharing

I have a problem when I upload a featured image for my post in jpg format, I get the featured image's thumbnail while sharing my post through any kind of messenger e.g whatsapp etc. But when I try to ...
bilalarshad24k's user avatar
0 votes
0 answers
856 views

Link custom post type to parent page and show in slug / breadcrumb

I am using the Custom Post Type UI plugin to add custom post types to our website. We now created a CPT called IPDC. For this custom post type, we would like to have the option to link every IPDC page ...
simplifyvof's user avatar
0 votes
1 answer
273 views

Prevent Yoast from removing the canonical tag if robots meta tag is set to noindex [closed]

I am using Yoast on a staging site and I want to have a canonical URL that points to the primary domain. So that staging.whatever.com uses canonical whatever.com I am replacing the canonical tag using ...
Álvaro Franz's user avatar
0 votes
1 answer
85 views

Embed sitemap in a page

I've seen that many sites have a dedicated page for a sitemap, not just an .xml file. For example, https://www.casinos.de/sitemap/ They're using Yoast SEO and sitemap.xml is also available, but how ...
HenrijsS's user avatar
  • 111
0 votes
1 answer
198 views

Is it possible to change the permalink structure without changing the old permalinks to posts and without 301 redirects?

I would like to change the permalink structure for new posts only. I want to leave the old ones as they are. I have a site that has over 30k posts and I'm worried that 301 redirects might mess up SEO. ...
Rafaucau's user avatar
  • 173
1 vote
0 answers
230 views

Way to change the Yoast Schema depending on post type? [closed]

I’m trying to change the schema on my website to work with my custom post types, so events/jobpostings can be categorized as such. But trying to work with a hook found on Yoast’s website, that hook ...
Fredy31's user avatar
  • 858
0 votes
0 answers
358 views

WordPress site using Yoast SEO being blocked from indexing by robots.txt

Morning all! I've just built a website for a client, using WordPress and the Yoast SEO plugin (free version). https://www.fly2help.org/ Whilst they're really happy with the website, I've noticed an ...
James's user avatar
  • 101
1 vote
0 answers
198 views

Getting error when trying to implement site-wide breadcrumbs in Twentytwentyone Theme [closed]

I've purchased the Yoast SEO Premium plugin earlier this year, but I wasn't able to figure out how to enable breadcrumbs until a few days ago. At first I thought I had to add blocks to every page and ...
HeavenlyHarmony's user avatar
0 votes
1 answer
85 views

charset problem in wordpress because of nginx config

I transferred a WordPress website to my server, the previous webserver was apache, the new web server is Nginx, but I made a mistake and got the Nginx config file from my old resources so this phrase &...
MohsenP's user avatar
  • 11
0 votes
1 answer
231 views

Custom function that re-writes page title breaks when the Yoast plugin is activated

I recently had someone here help me write a custom function for the WordPress site that I'm developing so that it re-writes the page title when a 404 error is encountered. It's been working exactly ...
Yvan Gagnon's user avatar
0 votes
0 answers
529 views

Wrong Open Graph image is shown (og:image) using yoast

I am using Yoast plugin and have set the Open graph metadata, but the thumbnail image is wrong. I have set the same image in these places: Page editor > Social > Facebook image SEO > Search ...
Davood Dorostkar's user avatar
0 votes
1 answer
971 views

How to get an archive page meta?

Im trying to get some meta from the plugin Yoast Seo, set to a archive page of a custom post-type. What am I doing wrong? $titleSEO = get_post_meta( '_yoast_wpseo_metadesc', true);
Fernando Souza's user avatar
0 votes
1 answer
127 views

Can't print Yoast meta description into page template (syntax error, unexpected '.') [closed]

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 ...
Drewdavid's user avatar
  • 189
0 votes
0 answers
99 views

How to stop the custom post type URL from the google search?

I don't have any issue with custom post type in the admin panel. It's working perfectly. I have a small issue with search on google, I search my domain on google and I found the below output. Note: ...
Naren Verma's user avatar
1 vote
0 answers
411 views

Change base URL of Yoast Sitemap [closed]

We're using wordpress for our headless CMS and the Yoast plugin to generate sitemaps. However Yoast uses the domain of the site i.e content.domain.com as the base url to generate the links on the ...
insivika's user avatar
  • 111
2 votes
0 answers
132 views

How do I get WordPress URL rewrites into Sitemap?

Consider the two following custom post types: Museums Bakeries With one shared taxonomy: Region I'm using rewrite rules to improve the URL structure, so I can serve pages to visitors such as: ...
rc_tn's user avatar
  • 21
0 votes
0 answers
121 views

Subcategories randomly not working after page/post/category edit in wordpress. Fix: saving permalinks twice

We run a custom WP theme with some plugins including Yoast SEO premium and WPML. We also run a version without WPML. In the version WITH WPML subcategories (quite randomly) give back a 404. This seems ...
Justin's user avatar
  • 111
0 votes
0 answers
29 views

An inactive plugin causes an HTTP 404 issue on a translated post - WPML

I help manage https://www.delscookingtwist.com/, a bilingual food blog which runs Wordpress (need I say that?) along with several other plugins including Yoast SEO and WPML. Recently, I noticed 404 ...
David Brossard's user avatar
0 votes
0 answers
54 views

Does anyone know why my SEO and title become one?

<h1><?php wp_title( '|', true, 'right' ); ?></h1> Does anyone know why my SEO and title become one? I use the above code to display the post title When I change the title of SEO, ...
sa eu's user avatar
  • 3
0 votes
1 answer
40 views

My page is shown as archive in my site

I've made a real estate website with Wordpress and I'm facing some issues. People register on the website as users, agents and agencies. On the agencies page where all registered agencies show it ...
klei's user avatar
  • 1
1 vote
1 answer
222 views

Need Help Correct Regular Expression Redirect Code

I have custom permalinks with this code /%year%/%monthnum%/%postname%.html and now switching to another custom permalinks %postname%.html so obviously all my content is now 404 not found, in yoast ...
kalkun's user avatar
  • 23
0 votes
1 answer
123 views

Why is URL Slug Saving Differently From How It's Been Defined?

When editing this page in the dashboard, I've defined the URL slug as ft-lauderdale. Also, the title of the page is 'Ft. Lauderdale', and the slug in Yoast is ft-lauderdale: However, when I view this ...
HappyHands31's user avatar
0 votes
0 answers
88 views

Yoast and permalink troubleshooting

For first let me introduce what I've already discovered. I don't know how Yoast calculates the permalink but it's non standard and that fact creates a lot of problems. There are some filters to force ...
Revious's user avatar
  • 313
0 votes
1 answer
2k views

Fixing link rel="next" in Yoast SEO for paginated links

I've got a site with yoast seo running, as seen in the source: <title>Redacted</title> <meta name="description" content="Redacted" /> <meta name="robots&...
Mark Mayo's user avatar
  • 105
0 votes
1 answer
1k views

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" ...
Jeffrey Simon's user avatar
0 votes
1 answer
2k views

how to disable Yoast SEO schema from homepage only?

I know it can be disabled everywhere with add_filter( 'wpseo_json_ld_output', '__return_false' ); But i want to keep the breadcrumbs so if i could do that only if (is_home()) that would be perfect. I ...
Michael Rogers's user avatar
1 vote
1 answer
157 views

Why does Google Image Search still display my images?

I am having trouble with a few image files that I would like to block for Google Image search. I am using Yoast SEO Plugin, which allows me to directly edit the robots.txt file. A few people with ...
danschdev's user avatar
1 vote
2 answers
2k views

Wrong Canonical url link

I have a weird problem. I have a page that changed URL (because it's parent changed name). Example Link https:www.mysite.com/my-services/service-1 is now: https:www.mysite.com/services/service-1 ...
thegirlinthecafe's user avatar
0 votes
0 answers
25 views

My wordpress local urls is still displayed even moved to live

My wordpress local urls is still displayed in some pages even moved to live. How do i fix this, local urls displayed in "canonical link", " meta property="og:locale" code, "schema code". NB: We are ...
jeens's user avatar
  • 1
0 votes
1 answer
497 views

Disabling Yoast, All-in-One, and Rank Math on Certain Pages within a Plugin

I developed a custom plugin for a site that is using URL rewriting within WordPress to create several dynamic pages. When one of these custom pages is loaded, I'm using the following functions and ...
Dexter's user avatar
  • 107
3 votes
0 answers
817 views

Using 'Primary Category' in URL

I'm running into an issue where I want to set up categories in my URL (%category%/%postname%), but doing this will create multiple URLs for the same content if I select multiple categories. So, for ...
leighton_burley's user avatar
1 vote
2 answers
436 views

Wordpress display breadcrumbs using Yoast plugin [closed]

Hi so for all my Wordpress 5.4 site’s posts (articles), I'm using Yoast SEO plugin for breadcrumbs across my site. For all my posts (articles) I just want: Home > CategoryLink > as breadcrumbs, not ...
sd100's user avatar
  • 11
1 vote
0 answers
735 views

Regex expression for redirecting image URLs to another folder

I have changed the upload folder to a folder called "images" in the root folder by entering define('UPLOADS', 'images'); inside wp-config.php file. My Media settings had the images organized into ...
quantum_leap's user avatar
1 vote
1 answer
546 views

Shortcodes not working in category or tag description

when Yoast plugin is enabled shortcodes not working in category or tag description I used this and this article and add these codes to the function but nothing change please help me. add_filter( ‘...
D.JCode's user avatar
  • 201

1
2 3 4 5