• Resolved heyjesshuff

    (@heyjesshuff)


    Hi there! I have really enjoyed using WP Ultimate Recipe. I’m using the plugin to display instructions for crafts instead of actual recipes. Is it possible to strip out the JSON metadata completely? I’d like to be able to enable Pinterest Rich Pins through alternate means (classifying my posts as “articles”), and don’t want my posts to display in Google as recipes, etc. Thanks in advance for your time!

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Brecht

    (@brechtvds)

    Hi there,

    Make sure the “Metadata Type” is set to “JSON-LD” only on the Recipes > Settings > Recipe Template > Recipe Box page and then try adding the following code to your theme’s functions.php file:

    function wpurp_remove_recipe_metadata( $metadata ) {
        return array();
    }
    add_filter( 'wpurp_recipe_metadata', 'wpurp_remove_recipe_metadata' );

    Kind regards,
    Brecht

    Thread Starter heyjesshuff

    (@heyjesshuff)

    WOW, thank you, Brecht! I am SO impressed. It worked perfectly. ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Strip Out JSON Metadata’ is closed to new replies.