Questions tagged [plugin-wp-seo-yoast]

WordPress SEO by Yoast is a popular SEO plugin for WordPress.

Filter by
Sorted by
Tagged with
0
votes
1answer
902 views

Adding a H1 Tag to Post Tags automatically, but hide the tag? (Same for Category)

So to increase my SEO score I require all tag pages to have a H1 title, for example website.com/tags/taghere would need the title: <h1>TagHere</h1> or simply <h1>taghere</h1> ...
0
votes
1answer
1k views

Yoast - Custom Taxonomy - primary category

I have a Custom Taxonomy with the name country. I would like to display the primary category only. I have the yoast plugin installed and that is how I'm setting the primary category. I'm using this ...
0
votes
0answers
10 views

Yoast Breadcrumbs using wrong slug with custom post type [closed]

I have a custom post type called podcasts. I have a permalink structure of sitename.com/blog/%postname%/ under Settings -> Permalinks. In the custom post type I rewrite the slug: 'rewrite' => ...
1
vote
2answers
1k views

Replace default og:image tag YOAST

I'm trying to replace the default image picked by yoast (featured image) with a custom with the relative og:image:width and og:image:height, but seems a mission impossible! I tryed with this: ...
0
votes
2answers
3k views

Set Primary category using the Yoast SEO plugin

function set_primary_on_publish ($post_id) { global $post; $categories = get_the_terms( $post->ID, 'category' ); // wrapper to hide any errors from top level categories or products ...
0
votes
0answers
18 views

display the tag description in the site template

I want to display the tag description in the site template. I searched and found this code but it shows the description of the last post <?php echo WPSEO_Meta::get_value("metadesc"); ?>...
0
votes
0answers
18 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 ...
0
votes
0answers
19 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 ...
0
votes
0answers
50 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, ...
0
votes
0answers
16 views

Check if page is set to noindex?

If using Yoast or Rankmath, how can I check if page has noindex meta tag? I want to use WP Query to find all pages that have noindex.
0
votes
1answer
18 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 ...
0
votes
1answer
823 views

Set default image for twitter cards with Yoast?

I've figured out how to use Yoast to set a Twitter card image for each page (enable Yoast, then go to the page and set the image and description manually in the "Yoast SEO" settings). But how do I ...
0
votes
0answers
70 views

SEO Site Title appearing in google search despite not being added

I am using Yoast SEO plugin for my WordPress website. I have not added Site Title to SEO Title in Yoast Content-Type Post settings or the post itself but it is still showing Site Title when the post ...
1
vote
1answer
19 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 ...
0
votes
0answers
12 views

Pagination url canonical problem for other pages

I have a WordPress Page setup, named 'Blog', where I've added the WP Query to bring through my blog posts. I also have pagination, setup on these pages such as: example.com/blog, example.com/blog/page/...
0
votes
1answer
590 views

Replace Yoast og:image in single custom post type

i'm trying to replace the custom yoast og:image in a specific post type to use a custom meta field instead of the featured image. What i got so far is: function my_wpseo_opengraph() { global $post; ...
0
votes
1answer
13 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 ...
2
votes
0answers
193 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 ...
1
vote
2answers
1k views

Yoast SEO breadcrumbs: how to create a filter that uses the url slug for breadcrumb titles

I know we can manually edit the breadcrumb title for a page or post using Yoast SEO's breadcrumb functionality. But with thousands of posts and pages on an existing site this isn't desirable. My ...
0
votes
0answers
22 views

Updating Wordpress Yoast Meta description through SQL Query

I have updated wordpress post's Meta description through SQL Update query. But it doesn't reflect on my published wordpress post until i edit that post and click on update button. How can i fix this ...
0
votes
0answers
36 views

Custom Yoast Breadcrumbs URL to make the breadcrumbs more detailed

Would like to modify the Yoast breadcrumbs. The current Breadcrumb is Home / Listings / City / ListingName And I want to add 2 more crumbs and delete Listings: Home / Area / State / City / ListingName ...
0
votes
0answers
19 views

WooCommerce custom role not working

I am trying to add WooCommerce product adding/editing capabilities to the Yoast SEO Manager role, however all it does is add the WooCommerce menu icon to that user role, and not the products tab, so ...
0
votes
0answers
25 views

Get if a current post or term has noindex in Yoast SEO programmatically

I'm trying to get if actual post/term object is no index by Yoast SEO. It's easy with post: $no_index = get_post_meta( get_the_ID(), '_yoast_wpseo_meta-robots-noindex', true ); But, what about terms? ...
0
votes
0answers
15 views

How Do You Grab The Current Post Title From A Dynamically Generated Page?

I'm trying to change the Open Graph metas that yoast inserted into my dynamically generated pages. For some reason I just can't get the actual title of the page. Unfortunately, all the examples give ...
0
votes
2answers
163 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 ...
0
votes
0answers
28 views

Removing Yoast from Specific Template

We have a custom template, content generated by an API so no WordPress edit page, and Yoast is spitting out meta data that is based on our most recent blog post, so entirely unrelated to the custom ...
0
votes
0answers
20 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 ...
0
votes
0answers
115 views

Adding data to Yoast Meta Title/Description through Wordpress Rest API

I have been trying to add data via WordPress Rest API to the Yoast fields of meta title/ description but it doesn't seem to update it. I have used the following code where I have passed the meta ...
0
votes
1answer
512 views

seo meta description issue in google search

This is my first time to use Yoast SEO plugin in my website, I'm trying to add meta description to every pages and every post in my website. When I search it on google, seems like the meta ...
1
vote
1answer
51 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 ...
0
votes
1answer
104 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&...
0
votes
1answer
196 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" ...
0
votes
1answer
200 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 ...
0
votes
0answers
92 views

Canonical url in wordpress post pagination

I have pagination using in my wordpress posts & pages. I need to set the main page url as canonical in my paginated pages. For example In the page https://sapbrainsonline.com/mm-tutorial/4 I need ...
0
votes
0answers
14 views

Updating YOAST metatitle + metadescription within a custom taxonomy?

I was just wondering if there was a way to update the yoast metadescription/title for a custom taxonomy? I know that posts have: update_post_meta($post_id, '_yoast_wpseo_metadesc'); Which is nice ...
0
votes
0answers
14 views

Yoast highligh custom search result

Maybe someone in the WordPress community can help me with this. I am using Genesis with WordPress and I have created some functions with the help from others on the internet to make custom search ...
0
votes
0answers
118 views

Disable/ Remove canonical tag generated by wordpress

There is problem in my wordpress site. It is showing duplicate canonical URL issue because yoast and WordPress or some other plugin both are creating canonical tag. I have tried to remove the ...
1
vote
1answer
504 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 ...
0
votes
0answers
20 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 ...
1
vote
3answers
1k views

How to parse Yoast SEO Snippet Variables

I see Yoast stores the snippet variables in the database. I'd like to get their values and ship them via the WP REST API. I'd also like to keep the Admin functionality for Administrators and the ...
2
votes
3answers
3k views

remove rel=next on home page but not others

There is a major problem with most new templates for WordPress that want you to set your homepage to Your Latest Posts. This is to enable many of the great theme features to work. The problem with ...
0
votes
1answer
161 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 ...
0
votes
0answers
26 views

Comment replies are not nesting because of YoastSEO plugin

I am using a child theme of the Public Opinion theme by CSSIgniter. This child theme only has a few modifications. You can visit the website by clicking here. I am unable to nest comments from the ...
1
vote
2answers
3k views

Edit title-tag in wp_head with yoast seo

I want to manipulate the html-title tag, so <title> these not the content of the title-tag! I use child-themes and it's inevitable, because the template have to be easy to update. So I have to ...
0
votes
0answers
7 views

Installing yoast wordpress plugin manually on google app engine

I am trying to install Yoast wordpress Plugin app google app engine. I am getting too many files error while deploying. Steps Followed: Downloaded Yoast Wordpress plugin unzipped plugin in wp-...
0
votes
0answers
22 views

og information not taken from custom post type single post

I have a custom post type, working fine, all of the yoast seo fields show in the single post menu. The problem is, that when I use the url on facebook, the all og data is not taken from the fields of ...
1
vote
2answers
122 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 ...
1
vote
0answers
204 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 ...
1
vote
0answers
159 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( ‘...
0
votes
0answers
78 views

Remove pagination pages of Wordpress Blog from Google Search Index

I have tried adding rel="prev" and rel="next" to the pagination. But the pagination pages pages still appear on Google Search Index. I want to remove them but Yoast SEO doesn't have the functionality ...

1
2 3 4 5