• Resolved seoservicesla

    (@seoservicesla)


    We had Articles schema on previous articles, but want to update to NewsArticle.

    Is there a way to automatically update all past posts?

    If I go under an individual post and under the Schema section and change the tab to News Article, the Schema Type does change to NewsArticle.

    How do I apply this globally to all previously published Posts?

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Rank Math SEO

    (@rankmath)

    Hello @seoservicesla

    Thank you for your message.

    You can use the following Schema filter to change the Schema type in all the posts:
    https://rankmath.com/kb/filters-hooks-api-developer/#change-post-schema-data

    Here is an example:

    add_filter( "rank_math/snippet/rich_snippet_article_entity", function( $entity ) {
    	$entity['@type'] = 'NewsArticle';
    	return $entity;
    });

    Hope that helps.

    Thread Starter seoservicesla

    (@seoservicesla)

    Unfortunately, this isn’t working for us. It’s supposed to update all older posts with schema type correct?

    • This reply was modified 4 years, 6 months ago by seoservicesla.
    Thread Starter seoservicesla

    (@seoservicesla)

    To confirm, it works on ALL posts and pages with Schema Type Article. If the Schema type is none, then it will not have any schema. Is there a fix on bulk updating Schema type from None to Article?

    Thread Starter seoservicesla

    (@seoservicesla)

    We found why the post are originally showing None schema type. When WP Review Pro plugin is activated, Rank Match schema type goes to None. Do you have a fix or suggestion on how to fix this compatibility issue? We’ve tried all the out of the box solutions on both plugins, but the conflict still exists.

    Plugin Author Rank Math SEO

    (@rankmath)

    Hello @seoservicesla

    We don’t have any code in the WP Review Pro plugin that removes the Rank Math Schema code. We just checked it on our setup.

    It seems like that you have updated the post after setting Rank Math’s Schema to None. In this case, there is no easy way to show the default Schema from the Settings. You will either have update all the posts and set it to Article or you will have to remove the entries from the postmeta table having key rank_math_rich_snippet and value off

    Hope that helps. Thank you.

    Thread Starter seoservicesla

    (@seoservicesla)

    I think there is a misunderstanding.

    For new individual posts, the schema is always set to None. However, in RankMath global settings it is set to Articles > NewsArticles.

    We can’t get it to display Article > News Article by default.

    The conflict is with the WP Review Pro Plugin. When we deactivate WP Review Pro Plugin, RankMath works.

    Do you also develop WP Review Pro Plugin? To confirm, the conflict is with this plugin – https://mythemeshop.com/plugins/wordpress-review/

    • This reply was modified 4 years, 6 months ago by seoservicesla.
    Plugin Author Rank Math SEO

    (@rankmath)

    Hello @seoservicesla

    It could be something else triggering that as both the products are working fine.

    Here is a screencast:
    https://i.rankmath.com/3hUtzB

    Assuming you are using the latest version of all the plugins, themes, and WordPress (please update if not yet), it would seem like a conflict with one of the plugins or the theme you are using.

    To determine that, please follow this troubleshooting guide:
    https://rankmath.com/kb/check-plugin-conflicts/

    Only the site admin would know and your users won’t be affected by this troubleshooting.

    Looking forward to helping you. Thank you.

    Thread Starter seoservicesla

    (@seoservicesla)

    We found the issue. We use Classic Editor. Please activate WP Review Pro and RankMath in Classic Editor and you will see all new Schema on posts become None. Can you please provide a fix?

    Thanks!

    Thread Starter seoservicesla

    (@seoservicesla)

    Following up on the fix for Classic Editor. Can you please mark this ticket as Open? We don’t have a solution yet.

    Plugin Author Rank Math SEO

    (@rankmath)

    Hello @seoservicesla

    In Classic Editor as well it is working fine. Here is a screencast:
    https://i.rankmath.com/ZFSfL2

    Assuming you are using the latest version of all the plugins, themes and WordPress (please update if not yet), it would seem like a conflict with one of the plugins or the theme you are using.

    To determine that, please follow this troubleshooting guide:
    https://rankmath.com/kb/check-plugin-conflicts/

    Only the site admin would know and your users won’t be affected by this troubleshooting.

    Looking forward to helping you. Thank you.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Apply NewsArticle Schema to Already Published Posts?’ is closed to new replies.