Questions tagged [plugin-wp-seo-yoast]

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

Filter by
Sorted by
Tagged with
21
votes
1answer
21k views

How to display Yoast SEO meta description in archive template for each post instead of the_excerpt()? [closed]

I read this question but it wasn't what I was looking for exactly. I'm new to Wordpress and a little confuse with the functions and everything. How can I get the metadescription in the loop for each ...
13
votes
1answer
18k views

Using php to overwrite or replace title tag, while using yoast [closed]

I use yoast for my seo, indexing, title, sitemap etc. But I have one issue, for my product pages I want to use costum taxonomy data and yoast doesnt support that. Now I got the code to echo the exact ...
12
votes
4answers
30k views

Display Yoast WordPress SEO title in archive template

The WordPress SEO plugin by Yoast allows users to add SEO titles and meta descriptions to taxonomy term archive pages. These are then used in the head of the document. I´m trying to display the SEO ...
9
votes
5answers
12k views

WordPress SEO by Yoast: Hide Meta Boxes in Posts for Non-admins

I have multi-author website and I am not very comfortable for allowing all members to enter SEO details in the posts they are publishing. I would like this would be visible only to Administrator of ...
9
votes
9answers
5k views

Remove an action from an external Class

I'm trying to do something similar to this question here: remove_action or remove_filter with external classes? I'm trying to remove the <!-- This site is optimized with the Yoast WordPress ...
8
votes
1answer
14k views

How to add a page to the Yoast breadcrumbs

I am using Yoasts Wordpress SEO and I have set up my breadcrumbs. The problem is that my page setup is s follows. / /about /blog - On this page I query the posts and display them. The posts ...
8
votes
2answers
10k views

Remove the Yoast SEO Post Metabox [closed]

Yoasts SEO plugin adds a metabox to the post edit screen. I'm trying to remove this for users who aren't editors or above. I've tried putting a remove_meta_box call in on admin_init, trying to remove ...
6
votes
2answers
27k views

How to roll back a WordPress plugin update?

Yesterday I updated WordPress SEO by Yoast to version 1.2.8.4 from version 1.2.7 and now my admin panel is messed up. I searched through the support forum but the plugin author has not replied to the ...
6
votes
2answers
5k views

Advanced Custom Fields and Yoast SEO keyword analysis [closed]

The problem I'm having is the keyword page analysis tool doesn't read my custom fields so I am trying to figure out how to run a filter on them. I found a blog post on Yoast website here here which ...
5
votes
3answers
999 views

Allowing Yoast SEO plugin to track me

I've recently installed the WordPress SEO plugin by Yoast and it's asking me whether to allow it or not to track my blog? Seems like a stupid question on my part but I'm still new on the blogging ...
5
votes
3answers
12k views

How can I modify the Capability needed to access a plugin's options?

I have the following 3 different Roles: Admin, Editor, and SEO. I have installed WordPress SEO by Yoast, and I want to get this: I don't want the editors to see the SEO options, because they only ...
5
votes
2answers
4k views

How to print meta description to posts? [closed]

I want to show my meta description content above posts. But i don't know what function I need to call. Resume: i want to put meta description from Yoast Seo above the posts body.
3
votes
2answers
18k views

Set Custom Post feature image as og:image

I am trying to set the Featured image as the og:image I have tried various ways and plugins (Yoast) but finding it hard to get my head around this. The issue is that it isn't picking up the feature ...
3
votes
4answers
17k views

Add a meta description to home page?

I have the theme Hatch and I can't figure out how to change the meta-description of the home-page. It is not an actual page, it is the default view for posts. Have searched everywhere for an answer ...
3
votes
0answers
43 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 ...
3
votes
0answers
673 views

Can't access my WP dashboard: fatal error? [closed]

I can't access my dashboard. It started after making a 301 redirect using a plugin. The redirection won't load nor entry, so I refreshed the page and got this message: Fatal error: Call to ...
2
votes
2answers
934 views

How to use Yoast SEO backend in english even if WPLANG variable is not english?

I added this code to my functions.php file add_filter('locale', 'wpse27056_setLocale'); function wpse27056_setLocale($locale) { if ( is_admin() ) { return 'en_US'; } return $...
2
votes
1answer
3k views

SEO meta description and title tag Yoast SEO

I am using Yoast SEO and a custom header. this obv means that any code that yoast uses to input all the seo stuff such as title tag and meta description wont be there. I solved the title tag by ...
2
votes
3answers
392 views

Yoast SEO Calling content filters 2 additional times

I was trying to add a content filter and i discovered that the filter was being called 3 times in total. I tried slowly deleting all of the plugins and eventually found that it was Yoast that was ...
2
votes
1answer
765 views

Why do I get a 404 for my sitemap index after installing Yoast? [closed]

I just installed the Yoast plugin on my Wordpress blog, so that I can automatically create my sitemap xml. However when I visit the page sitemap_index.xml I get a "404 page not found" error. Why isn't ...
2
votes
2answers
641 views

root-relative links for multiple parked domains

I have five domains pointing to the same server/wp installation. the domain names are important and my visitors need to be able to stay on their preferred domain as they surf through my site. how do ...
2
votes
3answers
4k views

Yoast's WordPress SEO plugin is not showing the correct snippet [closed]

I am facing a problem. I am not getting the snippet which YOAST plugin showed me. The snippet in Google search is different from what YOAST is showing. Check out the screenshots (http://imgur.com/a/...
2
votes
2answers
1k views

Hide Meta Boxes for Non-Admins

I have a review based wordpress site where I have a page for each different company where there users can review them. The theme I use adds a custom post type called "review" and I have used Press ...
2
votes
1answer
262 views

Why doesn't YoastSEO allow me to set the title/description for the home page? [closed]

For some reason, YoastSEO set my home page to the first blog post. So the home page canonical, title, and description are set to the values of the first blog post. And when I tried to set the home ...
2
votes
0answers
220 views

Yoast Sitemap grouping external sitemaps [closed]

I have a problem when adding external sitemaps to Yoast. I've managed to successfully add all my external products (which are hosted on a different project) using the wpseo_sitemap_index filter. ...
2
votes
0answers
505 views

Custom WP TItle from custom template with dynamic URL structure

I am new to custom WP development, but I have made a custom plugin. With a custom rewrite I have made the following URL structure: /profile/[company_name]/ I have made a new post Profile with a ...
2
votes
1answer
462 views

XML Sitemap : broken XML file [closed]

I use WP SEO by Yoast to generate sitemaps and the sitemap generated for custom types has a short hexa string at the beginning that invalidate the whole XML file : 148e2 <?xml version="1.0" ...
1
vote
2answers
6k views

Add Page number to Meta Description in Wordpress SEO by Yoast [closed]

The code below is from Wordpress SEO plugin by Yoast. I am trying to add the page number to the Meta description on paginated posts (to avoid duplication issues with Google). function metadesc( $echo ...
1
vote
3answers
174 views

make the url unlimited

i want in wordpress long unlimited with no char limit i use plugin wordpress seo when i try make url like https://sitename.com/برمجة-تصميم-موقع-مركز-رفع-تحميل-تطبيق-تطبيقات-ايفون-اندرويد/ it show ...
1
vote
2answers
2k views

Yoast SEO hooks overriding themselves

I have some dynamic templates where I have to customize the canonical links. According to Yoast documentation the hook to use is wpseo_canonical I have two functions pointing to different pages IDs:...
1
vote
3answers
5k views

Manipulating wp_head content

I'd like to know if it is possible for me to manipulate the output of wp_head()? Right now I'm using the Yoast SEO plugin to add some social tags into my posts (og:*). Now this site is an remake of ...
1
vote
3answers
21k views

Removing “Noindex, follow” from pages [closed]

I am using WordPress SEO plugin written by Yoast. This plugin, by default, shows "noindex,follow" on every page. I am sure I know the file that displays "noindex, follow" but after much "tweaking" I ...
1
vote
1answer
4k views

Open graph problem: Showing wrong description of homepage while sharing on Facebook [closed]

Check out this URL: http://developers.facebook.com/tools/debug/og/object?q=www.linuxstall.com Everything is fine except the last line which is Note: "Reference in Perl" is the most recent post at my ...
1
vote
1answer
3k views

Inserting Post Using wp_insert_post. How to Fill Yoast Plugin SEO Fields

I am inserting posts into a database using wp_insert_post function once the post is inserted using below line of PHP $postId = wp_insert_post($array) I can insert values in my advanced custom fields ...
1
vote
2answers
2k views

add post content in meta description in yoast

How can I add post content in meta description via Title & Metas? I have seen excerpt variable %%excerpt%% but it will give only excerpt but I want whole content in meta description. Can any one ...
1
vote
2answers
2k views

Add custom taxonomy to title tag [closed]

I'm using Yoast's WordPress SEO plugin for a variety of websites. In setting title tag templates with his %%category%% syntax, I've figured out that you can reference custom fields by using %%cf_<...
1
vote
1answer
359 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($...
1
vote
3answers
2k views

htaccess: Remove trailing slash from URL ending with .xml/ only

I need to remove trailing slash from URLs ending with .xml/ only .. For this purpose I've created a Rewrite Condition and Rule which is working perfectly fine for the test link http://website.com/test....
1
vote
1answer
299 views

Post content blank after disabling Yoast SEO

I'm trying to disable the Yoast SEO plugin from a very simple site with a custom theme. After disabling the plugin, posts do not have any content -- titles work, just the_content is empty. Pages are ...
1
vote
2answers
2k 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 ...
1
vote
2answers
508 views

Adding multiple taxonomy filters to functions.php

I need to add multiple taxonomy filters to the functions.php file to remove (3) irrelevant taxonomies from the Yoast SEO sitemap index. I have been able to successfully add one filter, but when I add ...
1
vote
1answer
917 views

Set different Canonical url programmatically for every post

I want to set the set the cannonical url programmatically for every post. By that I mean when creating/editing an article there should be the possibility to set a custom cannonical url for it. (maybe ...
1
vote
2answers
536 views

Mystery URL http://#/ Listed in XML Sitemap Created by WordPress SEO by Yoast Plugin

I'm using the Wordpress SEO by Yoast plugin. I'm having problems getting the Sitemaps XML section to work properly. Google gives me the dreaded red X for the status of the sitemap. The error message ...
1
vote
1answer
26 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
1answer
569 views

force category base - archive pages work WITH & WITHOUT category base slug in url?

I need any posts of any category (and archive pages) to route through /blog/. I added "blog" to my category base, but now both website.com/blog/my-category/ AND website.com/my-category/ both display ...
1
vote
1answer
380 views

With the Yoast SEO plugin, is it possible to make the meta description a required form field?

I am referring to the meta description field as pictured below: Is it possible to configure the plugin so as to make that field required? If a user tries to publish a post with it empty, they would ...
1
vote
1answer
291 views

Get wp_title wp ajax

I am attempting to get the result of wp_title for a specific url. I am doing this to form an ajax responce when a page is requested. I have read several responces (e.g. Get wp_title() from page ID ...
1
vote
1answer
30 views

One of my plugins broke when I tried to update it, how do I safely uninstall it?

I recently tried to update Yoast SEO to its most recent release (4.3). My site is running the most recent version of WordPress (4.7.2). When I tried to install it, it gave me some error having to do ...
1
vote
1answer
498 views

alt tags of the images are not saving/emtpy

When I try to add an alt tag of an image via the library in Wordpress the alt tag is not saving. After leaving and coming back to the library again the alt tag fields are empty. I’ve tried the ...
1
vote
2answers
1k views

Exclude custom post_type in sitemap generation?

I want to exclude some specific post types from generating sitemaps in yoast seo plugin. Please provide suggestions to do this. Thanks in advance.