• Resolved SeyMedia

    (@seymedia)


    Hi, how can i enable news article schema for custom post type? Yes, i know that news article schema is default only for post, but can this be enabled also for custom post type?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @seymedia

    The Yoast SEO plugin code documents the available developer filters for customizing many of our plugin features. We also have a developer portal with more information about filters and many examples of how to implement them.

    You or your developer can use the wpseo_schema_article_post_types filter to customize the schema. Typically code snippets are added to your theme’s functions.php file. If you’re unfamiliar with using code snippets, we’d like to refer you to the WordPress documentation on how to use a filter.

    We recommend creating regular backups of your site and database for your site’s health and safety. A backup is crucial before making important changes on your website and provides you with a safety net if something were to go wrong. Learn more about the benefits of regular backups.

    Thread Starter SeyMedia

    (@seymedia)

    Thank you. I managed to create a custom news article schema via functions.php without using Yoast Seo plugin. I will leave like this for the moment.

    Have an awesome day!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Custom post type – news article schema’ is closed to new replies.