Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

og:description can't add to custom post type archives. #9783

Closed
2 tasks done
tanshio opened this issue May 21, 2018 · 6 comments
Closed
2 tasks done

og:description can't add to custom post type archives. #9783

tanshio opened this issue May 21, 2018 · 6 comments
Labels
component: social innovation Innovative issue. Relating to performance, memory or data-flow. severity: minor Yoast: SEO Features Yoast Feature
Milestone

Comments

@tanshio
Copy link

tanshio commented May 21, 2018

  • I've read and understood the contribution guidelines.
  • I've searched for any related issues and avoided creating a duplicate issue.

Please give us a description of what happened.

I use Yoast SEO 7.5.1 and WordPress 4.9.6.
I add to description, but og:description can't add to custom post type archives.

Please describe what you expected to happen and why.

Other pages are successful.

How can we reproduce this behavior?

  1. Create custom post types.
  2. Add description to custom post type archives.
  3. og:description can't add to custom post type archives.

Screenshots

image

image

Additional context

Custom post type

function cptui_register_my_cpts() {

	/**
	 * Post Type: news.
	 */

	$labels = array(
		"name" => __( "news", "twentyseventeen" ),
		"singular_name" => __( "news", "twentyseventeen" ),
	);

	$args = array(
		"label" => __( "news", "twentyseventeen" ),
		"labels" => $labels,
		"description" => "",
		"public" => true,
		"publicly_queryable" => true,
		"show_ui" => true,
		"show_in_rest" => false,
		"rest_base" => "",
		"has_archive" => true,
		"show_in_menu" => true,
		"show_in_nav_menus" => true,
		"exclude_from_search" => false,
		"capability_type" => "post",
		"map_meta_cap" => true,
		"hierarchical" => false,
		"rewrite" => array( "slug" => "news", "with_front" => true ),
		"query_var" => true,
		"supports" => array( "title", "editor", "thumbnail" ),
	);

	register_post_type( "news", $args );
}

add_action( 'init', 'cptui_register_my_cpts' );

Technical info

  • WordPress version: 4.9.6
  • Yoast SEO version: 7.5.1
  • Relevant plugins in case of a bug:
  • Tested with theme: twentyseventeen
@Pcosta88
Copy link
Contributor

related: #2416

@benvaassen
Copy link
Contributor

benvaassen commented Jul 13, 2018

Thanks for reporting this bug! Still reproducible with 7.8.
I’ve marked it as backlog so it appears on the to-do list for our developers.

@rmarcano
Copy link

Please inform the customer of conversation # 540075 when this conversation has been closed.

@rmarcano
Copy link

Confirmed on 12.1-RC3 Premium by @Djennez

@priscillamc
Copy link

Please inform the customer of conversation # 583658 when this conversation has been closed.

@herregroen
Copy link
Contributor

This has been fixed in Yoast SEO 14.0.

@herregroen herregroen added this to the 14.0 milestone Apr 23, 2020
@IreneStr IreneStr added the innovation Innovative issue. Relating to performance, memory or data-flow. label Apr 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: social innovation Innovative issue. Relating to performance, memory or data-flow. severity: minor Yoast: SEO Features Yoast Feature
Projects
None yet
Development

No branches or pull requests

9 participants