Back to Community

Resolving Jetpack and Yoast SEO Open Graph Meta Tag Conflicts

41 threads Sep 16, 2025 PluginJetpack

Content

If you use both Jetpack and Yoast SEO on your WordPress site, you might encounter a frustrating issue: duplicate Open Graph (OG) meta tags appearing in your page's source code. This conflict can confuse social media platforms when sharing your content, potentially leading to incorrect images or descriptions being displayed.

Why Does This Conflict Happen?

Both Jetpack and the Yoast SEO plugin include functionality to generate Open Graph meta tags. These tags are used by platforms like Facebook and LinkedIn to understand the content of a page when it's shared. Typically, these plugins are designed to detect each other's presence. Under normal circumstances, if Yoast SEO is active and its social meta module is enabled, Jetpack should automatically defer to it and not output its own OG tags. However, as seen in user reports, this automatic detection can sometimes fail, resulting in both plugins outputting their tags and creating a duplicate set.

How to Fix the Duplicate Open Graph Tags

Here are the most effective methods to resolve this conflict, starting with the simplest solution.

1. Verify Yoast SEO Social Settings

First, ensure that Yoast SEO's social meta features are actually enabled. Navigate to SEO → Social in your WordPress dashboard. Make sure the Open Graph meta data option is turned on. This is the most common reason Jetpack might not be detecting it correctly.

2. Use the Official Jetpack Code Snippet

If Yoast is configured correctly but the duplicates persist, you can explicitly tell Jetpack to disable its OG tags. The Jetpack team provides a specific code snippet for this purpose.

  1. Access your theme's files, preferably by using a child theme to avoid losing changes during updates.
  2. Edit the functions.php file.
  3. Add the following code snippet at the end of the file:
    // Remove Jetpack Open Graph tags
    add_filter( 'jetpack_enable_open_graph', '__return_false' );
  4. Save the file and clear your site's cache (including any caching plugins, server-side cache, or CDN cache).

3. Check for Other Conflicts

If the code snippet does not work, another plugin or your theme might be interfering. As indicated in one support thread, a custom code snippet elsewhere could be forcing Jetpack's OG tags to remain active. To test for this:

  1. Temporarily disable all other plugins except Jetpack and Yoast SEO.
  2. Check if the duplicate tags are gone.
  3. If they are, reactivate your plugins one by one to identify the one causing the conflict.
  4. Also, try temporarily switching to a default WordPress theme (like Twenty Twenty-Four) to rule out a theme-related issue.

Conclusion

Duplicate Open Graph tags are a common conflict between Jetpack and Yoast SEO, but they are usually straightforward to resolve. Start by checking your Yoast settings, then implement the provided filter, and finally, perform a conflict check if the problem persists. By following these steps, you can ensure your social media shares look perfect every time.

Related Support Threads Support