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
15 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
91 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
21 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
103 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
241 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
179 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
254 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
19 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
0 answers
79 views

Add a filter conditionally based on frontpage

I need this function to be applied only to the homepage? Currently it's being applied to the homepage, but also on other pages such as single posts. add_filter( 'wpseo_frontend_presenter_classes' ...
Juninho10's user avatar
0 votes
1 answer
518 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,677
0 votes
2 answers
525 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
40 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
827 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,677
0 votes
0 answers
194 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
699 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
237 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
68 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
118 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
158 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
252 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
184 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
75 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
170 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
390 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
883 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
112 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
96 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
338 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
89 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
99 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
  • 11
0 votes
0 answers
28 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
34 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
204 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
68 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
71 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
1k 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
976 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
1k 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
141 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
1 answer
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
24 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
433 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
763 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
428 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
658 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
486 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
0 votes
1 answer
224 views

Permalink not changing according to post type

I am using two post types: a) Posts ( Default post type) also name as blog for blogging. b) case studies ( Custom Post Type ) only for case studies. I want to add the string ‘blog’ for default post ...
Wasif Mumtaz's user avatar
0 votes
2 answers
559 views

Retrieve a value from Yoast SEO to use to set a default twitter card image honoring overrides

So Yoast SEO has an issue where you can't define a global default twitter card image. So I'm looking to both set a default twitter card image but allow for the override on the specific pages to ...
Ryflex's user avatar
  • 103

1
2 3 4 5