Quantcast
Channel: Active questions tagged yoast - Stack Overflow
Browsing latest articles
Browse All 97 View Live
↧

Wordpress shortcode not rendering in Yoast og:title

I have a simple shortcode which i use on post titles:add_shortcode('year', 'year_shortcode');function year_shortcode() { $year = date('Y'); return $year;}add_filter( 'single_post_title',...

View Article


Wordpress > Yoast > How to adjust (or disable) Meta-Robots for Comment-URLs?

It would be wonderful if someone could enlighten me about the use of meta-robots for comment-urls in Yoast.As you can see in the source code of these example...

View Article


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

I am quite new to WordPress so I am not sure how this would work.Essentially I have the Yoast plugin handling my SEO related things. The main one giving problems is the description meta tag.The site is...

View Article

I am trying to override Yoast breadcrumbs using the PHP...

I am getting an undefined array error. The goal here is to override the second link to simply go back one page. An example isCustom Templates > Category > TemplateI added the following code to...

View Article

Looking for a free way to add breadcrumbs to my website, I still haven't...

So I have been trying with Rank Math, Yoast, with the little code embedded, but nothing seems to be clear in terms of letting WordPress/Elementor the structure of my website, which parent pages after...

View Article


How to fill the YOAST SEO Meta data when creating a post using API

I'm trying to insert meta description for my Wordpress post, but the meta-description is always empty.This is my code:post_data = {'title': title,'content': markdown.markdown(content),'slug':...

View Article

How can I move the Yoast Schema.org markup to the bottom of the head?

I'm trying to figure out how to move the Schema.org markup that Yoast outputs to the bottom of the head.The only filter I've been able to find only removes the :add_filter( 'wpseo_json_ld_output',...

View Article

How to disable Yoast SEO in specific page?

i'm trying to hide the title tag of the head of my template. I'm using this code:add_action( 'template_redirect', 'remove_wpseo' );function remove_wpseo() { if ( is_single ( 123456 ) ) { global...

View Article


Image may be NSFW.
Clik here to view.

WordPress Gallery thumbnail and single post issue after migrating to new host

After migrating to new host,i am facing a strange issue of Media image file's thumbnail while uploading to media gallery and also during editing or adding new blog post. The exact problem is as...

View Article


LinkedIn API - Server 500 Error on some pages

I have a wordpress site built with a custom theme - I'm having problems getting previews to show while sharing some pages on LinkedIn (while they work fine in Facebook)Using the LinkedIn Post Inspector...

View Article

How set meta description for Yoast SEO plugin from Open AI in WordPress

I have recently developed a WordPress plugin that utilizes Open AI to generate descriptions and other data for products. One of the challenges I'm facing is integrating the generated meta descriptions...

View Article

_yoast_wpseo_title/_yoast_wpseo_metadesc for a taxonomy

I would like to make some bulk edits on the above field for the taxonomies on my site. However, after having examined in detail all the tables and fields, I have been unable to find them for the...

View Article

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...

View Article


Wordpress Yoast exclude posts from XML sitemap

I’m using Yoast SEO plugin and I'm trying to exclude posts manually from posts XML sitemap using 'wpseo_sitemap_entry' filter but so far have no luck.This is my current code:function...

View Article

Dynamically remove event from YOAST sitemap if custom field has value

I have a wordpress site with over 100 events which all have a redirect. I want to exclude these from the sitemap ("3xx redirect in sitemap"-error). I'm using YOAST to create the sitemap.The way this...

View Article


How to Add Meta Description and Focus Keyword to Post via WordPress REST API...

I am using the WordPress REST API (wp-json/wp/v2/posts) to publish posts. The request works, but when I analyze the post in Yoast SEO, it says I need to add a meta description and a focus keyword...

View Article

WordPress/Yoast SEO sitemap find and replace issue

So I have a WordPress site hosted on wpengine with Yoast SEO. So all the links in the site map are like https://example-site.wpenginepowred.com.We also use AWS cloud front to direct traffic to either...

View Article


Create a custom meta description for WordPress Blogs page

I want to write a custom meta description for my WordPress blog page. I don't have a custom front page, the posts page is the front page. I downloaded SEO by Yoast and added what I want to the Meta...

View Article

Cant validate facebook og meta after updating to https

I have recently apdated my site from http to https. The system is using wordpress, and posts are all using Yoast pluging for seating the information for facebook posts. After I updated to https, I lost...

View Article

Yoast. Display metadesc in categories

I want to display metadesc in my category’s pages like this: echo get_post_meta(get_the_ID(), ‘_yoast_wpseo_metadesc’, true);It works in posts, but doesn’t work in categories.In categories I write:...

View Article

YOAST plugin does not work any longer in redirecting images

Since september 12th (this is an estimate) I cannot upload an image in YOAST and have it redirect when uploading the image to facebook. I have checked the changelogs of both YOAST and the graph API of...

View Article


Facebook doesen't show image even if og:image is present and working

I debug a shared webpage link in facebook debugger and I get a 200 code as result.The Facebook Debugger can't show the image attached and also it doesen't show while sharing the URL. On Whatsapp and...

View Article


Image may be NSFW.
Clik here to view.

How to remove specific post type indexes from Yoast sitemap_index.xml

I used Yoast's API to create a custom XML sitemap that combines all of my website pages and a few other post types into one. I do the same thing for translated pages so that they are in their own...

View Article

How do I generate a sitemap with Yoast on Next.js/Faust.js?

I'm trying to follow the instructions here: https://faustjs.org/guide/how-to-use-sitemapsI created the file at /pages/sitemap.xml.js exactly as described here but /sitemap.xml and /sitemap_index.xml...

View Article

Yoast SEO meta description not saving

I generate a Focus Keyphrase and Meta Description in Yoast SEO meta box for my Home Page. But when I exit the editor, if I go back to the Home Page, the Focus Keyphrase and Meta Description have...

View Article


How to add Multiple field data with WordPress Rest API and Python

I want to add a featured image, and since I am using Yoast SEO, I also want to add a focus keyphrase, SEO title, and meta description using the Python REST API, but I don't know how to proceed...

View Article

Trying to add Shipping weight to schema via functions.php in woocommerce for...

I'm trying to add the shipping weight via functions.php in woocommerce to the Schema using add_filter('woocommerce_structured_data_product').I currently have if ( $product_weight ) {...

View Article

Problem with disabling tag archives of custom post types on WordPress

I have problems with tags. They are disable in Yoast SEO but wordpress generate pages that give me 404 no found.They look something like thistag/costum/cine-ne-recomanda/Where cine-ne-recomanda is a...

View Article

Simple Sitemap + Yoast WP plugin = sitemap not working (xml issue)

Our sitemap contains formatting issues and isn't working (as shown in the screenshot). The sitemap is generated by Simple Sitemap and we also have Yoast activated which might affect it. We have always...

View Article



How to show Yoast SEO title in the front end as a shortcode?

I'm looking for a way to show Yoast Seo Title in the frontend as shortcode. For example: for showing page title as shortcode I've added<?php function page_title_sc( ){ return get_the_title(); }...

View Article
Browsing latest articles
Browse All 97 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>