The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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
50 views

wp-admin send 404 error

I installed the plugin "yoast seo" and now when I enter and exit, they give me an error. And I can only come through /wp-login.php. how to fix ? please help
0
votes
0answers
8 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 ...
-1
votes
0answers
12 views

How to add timestamp to title-tag?

I want to insert a shortcode for a simple timestamp - year - to a title-tag, so that it renews itself every year. I use Yoast SEO and a php-shortcode plugin ("XYZ PHP Code"). The shortcode is [xyz-...
0
votes
0answers
21 views

Show Yoast SEO meta tags in Custom WordPress Templates (Theme)

I overwrote twenty nineteen theme in WordPress and included all my templates. After that, I installed the Yoast SEO plugin to add dynamic meta tags to pages created using custom templates. I have ...
0
votes
1answer
26 views

Conflict calling an add_filter() twice

'Yoast SEO' plugin has a filter to exclude posts from the sitemap: wpseo_exclude_from_sitemap_by_post_ids This is the adviced usage (from the 'Yoast SEO' official documentation): add_filter( '...
0
votes
1answer
22 views

Yoast SEO settings unavailable in an archive page from wordpress plugin

My Wordpress site has "Seriously Simple Podcasting" plugin installed to serve the podcast feature. This plugin comes with a podcast archive page(click to open) on my site. The page shows correctly ...
0
votes
0answers
11 views

How to insert links while working with Yoast FAQ block in Gutenberg?

I'm writing a FAQ using Yoast's FAQ plugin that creates FAQ block in Gutenberg editor. Everything runs smoothly but I can't add links or any other formatting elements to answers. Is there an option ...
0
votes
0answers
38 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
29 views

Where does the Yoast SEO plugin set the Open Graph metadata?

The Yoast SEO plugin add this line to the head section of the page: <meta property="og:image" content="https://link.to.image.jpg" /> But according to FB OpenGraph og:image not pulling images (...
1
vote
0answers
38 views

How can I add a second Open Graph image to a site using Yoast? [closed]

Through the Yoast SEO plugin, I've added a 1200 by 630 image for use by sites like Facebook and LinkedIn (and the image shows up with a complete set of og meta tags). I want to add a second open ...
0
votes
1answer
28 views

Wordpress replaces “https://” with “//” for Site & Wordpress-URL

When I save "https://example.com" in General Settings as my Site & Wordpress URL, it gets replaced by "//example.com". To analyze the problem, I checked the Wordpress database, but 'WP_HOME' and ...
0
votes
0answers
45 views

WooCommerce related product - only show from primary category

I have products in multiply categories e.g. "All lamps", "Ceiling lamps" and "Black lamps". "Black lamps" is the primary category (using Yoast SEO for making primary category). My problem is ...
0
votes
1answer
26 views

Yoast taking over my Wordpress title tag [closed]

I have this code: <h1><?php the_title(); ?></h1> That is meant to display the title of my blog post only. But because Yoast has a SEO title of something else, it is displaying ...
0
votes
1answer
73 views

Programmatically add Yoast meta description after post save

I'm building a website and I need to have the Yoast description programmatically added after saving a post (a custom post type in my case). Now, since I'm using Advanced Custom Fields, and I also ...
0
votes
0answers
19 views

WP-API Yoast Default Site titles with snippet variables not saving

I’m using a headless WordPress with WP-API. So, I’m exposing yoast data in the API. With something like this: 'yoast_wpseo_title' => wpseo_replace_vars(get_post_meta($post->ID, '...
0
votes
0answers
19 views

Make Yoast read post meta fields when calculating SEO score

I have a custom post type that includes several meta fields. One of which is a text area that contains quite a bit of text. Is there any way I can make Yoast read the content of this text box along ...
0
votes
1answer
10 views

Extract all users along with yoast metadata description

We currently have a authors list page which shows all users which have at least 1 published post. Within this page I'd like to also show the description of the user, but take this from the metadata ...
0
votes
0answers
35 views

Getting yoast title for custom taxonomy

I have created a theme template for a custom taxonomy. The HTML title tag has the yoast title that I set when editing the taxonomy. I want to also make this the title of the page. I cant seem to ...
-1
votes
1answer
33 views

Tagline showing instead of meta description!

I have a website called charlieandco.co.nz based on Wordpress. I installed the Yoast SEO plugin to set the SEO title and meta description of the website pages. However, after 1 week of changing, ...
0
votes
0answers
33 views

Sitemap could not be read

i have another Wordpress website (already several "customer websites") where i take care of the indexing, but with this installation i get the errors "Sitemap could not be retrieved" if i click on the ...
0
votes
0answers
24 views

Have custom post type posts show under regular posts in sitemap (Yoast)

I have a custom post type called FAQs, and I'm using Yoast SEO to generate a sitemap. The sitemap gets generated like it should, but it creates a completely separate sitemap for the FAQ post type, so ...
0
votes
1answer
46 views

Yoast primary category query modification

I have a problem with Yoast and displaying my primary category alongside rest of the posts from that category. Let's say I have 4 posts, all of them are lorem category and one post has set lorem as ...
0
votes
1answer
32 views

How to add a rest field to post tags?

I'm doing a headless wordpress, so using wordpress API. Using Yoast, I've added yoast SEO data to my post types API endpoints like this: function wp_api_encode_yoast($data, $post, $context) { $...
0
votes
1answer
107 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
1answer
283 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 ...
1
vote
0answers
24 views

Wordpress Sitemap including pages that aren't there

I dont know if this is a severe cache, or a bug of sorts, I've installed multiple "seo" plugins to try and fix this, trawled the file system, cleaned the database, I don't know what is generating this ...
0
votes
1answer
135 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
0answers
45 views

301 redirects after changing permalinks

I've recently changed my permalink structure from /%category%/%post_id%/ to /%category%/%postname%/. I've also switched from Yoast to The SEO Framework plugin. Prior to making that switch, I deleted ...
0
votes
0answers
131 views

Robots.txt file not updating

One of our website robots.txt file is not getting updated,deleted .htaccess and robots.txt file from root folder from one of the suggested answers Why does Google Webmaster Tools say my whole site is ...
0
votes
0answers
247 views

Error in backend: Failed to load plugin: tabfocus from url

I'm getting an error that looks really wierd (notice the red error, running all the way down from top to bottom, over the left sidebar): The error is: Failed to load plugin: wordPress from url ...
0
votes
1answer
17 views

How to track analytics with a Wordpress site under the same domain as my main site?

I have a website and separate Wordpress site as well. The wordpress site is setup at mydomain.com/blog/. Currently I have google analytics tracking the main website but data is missing for the WP ...
0
votes
0answers
81 views

How to use yoast to add custom post url to sitemap file?

I used add_rewrite_endpoint to add a string at the end of url. function wpseo331941_reader_endpoint() { add_rewrite_endpoint('readers', EP_PERMALINK | EP_PAGES); } add_action('init', '...
0
votes
1answer
171 views

Wordpress yoast seo plugin - parse snippet var in meta description

I am using this function to get the yoast meta description $metadesc = get_post_meta( $id, '_yoast_wpseo_metadesc', true ); But it is returning the snippet variable. From transitional styles %%...
0
votes
1answer
420 views

Custom Yoast Breadcrumbs URL

I'm trying to change the link in the default Yoast SEO Breadcrumbs. The current Breadcrumb is Home / Projects / My Pretty Project And I want to change the "Projects", and it's link, to "Case ...
0
votes
0answers
27 views

How to call Yoast Seo Tags without needing to call the whole wp_head?

A client wants to add SEO to his newsletter pages, that are linked to WP. (See at end) and wants those pages to be indexed, and have some SEO in them. I already got Yoast on the site, but I do not ...
-1
votes
1answer
25 views

How to clean up unnecessary file inside wp-content/plugins/wordpress-seo?

I currently maintaining 7 years of Wordpress site. Disk usage are recently full, so I need to check automatic back up regularly and save those back up, and delete it from the server. And when I ...
1
vote
1answer
33 views

My WordPress website has 2 header [closed]

My WordPress website has 2 header and showing yoast plugin 2 times in source code. I want to delete one, so that its not show meta tags twice. Is there anybody can help?
0
votes
0answers
28 views

Using $this with an anonymous function in filters

Okay so I have a method within a class which looks like $this->addToSitemap('page', $urls); This is used to append extra pages to the Yoast Sitemap. Here 'page' is the type of sitemap within ...
0
votes
0answers
137 views

How to display custom seo title before the loop?

So I've optimized one of my archive page title to this add_filter('wpseo_title', 'new_filter_title'); function new_filter_title($title) { if ( is_page('1637') && $...
0
votes
0answers
28 views

How to pull list of all Yoast keywords that I have entered into all posts?

I find the need to make one list of all keywords in one spot. Rather than going into my hundreds of posts and manually making a list, I figure there would be a functionality to find this or a way to ...
-1
votes
1answer
21 views

Yoast SEO makes repeated INSERT queries loading any page

By using Query Monitor plugin I found that Yoast SEO (Wordpress SEO) plugin makes repeated INSERT queries to the db when I load any page (dashboard and frontend) of my site. INSERT INTO `...
1
vote
1answer
420 views

When does the Yoast SEO filter hook wpseo_sitemap_urlimages fire?

I am trying to attach a simple function to the Yoast SEO filter hook wpseo_sitemap_urlimages and get the function to run, but I cannot do so. My code is: function tp_filter_wpseo_sitemap_urlimages($...
0
votes
3answers
658 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 ...
0
votes
2answers
42 views

How can I change the <head> tag contents of individual Wordpress posts?

How can I change the tag contents of individual Wordpress posts? I want to add a meta tag for keyword. I use Yoast SEO but even though I specify the focus keyword, no keyword is added in the meta ...
0
votes
3answers
840 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
1answer
239 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; ...
1
vote
1answer
59 views

How to Change The Title in WordPress For SEO

My concern is when I search for that company I see what is shown in the image. Instead of Home, I require it to show a custom title that is good for SEO. What is the best way to fix this? Please ...
0
votes
1answer
677 views

Query Post Based of Yoast Primary Category Class

I can pull the terms from a post to return only the Primary Category that Yoast SEO plugin provides. But what I'd like to do is the following: Query latest 1 post from category "x". But, the post ...
0
votes
1answer
788 views

Can I change the contents of a description meta tag generated by Yoast?

Essentially I have the Yoast plugin handling my SEO related things. The main one giving problems is the description meta tag. The site is bilingual and I would like the description meta tag to be ...
3
votes
0answers
44 views

Yoast SEO blocking/re-initialising longer running process

I have created a custom plugin, the job of which is to calls an external API to fetch data and fill in some custom tables in WordPress database. This is really a long-running process (maybe over 30 ...