Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter Alan

    (@perks4patriots)

    Thank you for the clarification.

    Just to confirm, if I’m using a custom post type like wpbdp_listing (from the Business Directory Plugin) and want to output my own Open Graph tags via a custom function, the best practice would be to globally disable Yoast SEO’s Open Graph output using:

    phpCopy

    Edit

    add_filter( 'wpseo_output_open_graph', '__return_false' );

    Is that the correct and fully supported method?

    I’ve been attempting this, but I’m still seeing inconsistent results — sometimes Yoast’s OG tags appear alongside my custom ones. Could this be related to template-specific behavior, AJAX previews, or some kind of output buffering/caching?

    I just want to ensure I’m following the best approach to fully suppress Yoast’s OG output on this specific custom post type to avoid duplication or conflicting metadata.

    Thanks again for your time and insight!

Viewing 1 replies (of 1 total)