• Resolved saqwild

    (@saqwild)


    Hi,
    Using WPRM Premium, if i add an additional taxonomy; let say “Skill Level”, how do I associate related rich text markup (Google Structured Data) to it?

    also, like wordpress ultimate recipe maker, are there any custom hooks, filters and functions available?

    Thanks
    SAQ

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

    (@brechtvds)

    Hi there,

    As far as I’m aware Google only uses recipeCategory and recipeCuisine, both of which are covered by the default Courses and Cuisines taxonomies.

    There are plugin hooks available. What are you looking for specifically?

    Brecht

    Thread Starter saqwild

    (@saqwild)

    Hi Brechet,

    Google typically uses the schema.org vocabulary. https://schema.org/Recipe. and it accepts in structure data testing tool.

    I am not specific to any particular one but just in case if i want to extend the functionality by using any of the above markup, let say “contributor” (not author), how do i do that?

    Plugin Author Brecht

    (@brechtvds)

    You can use the wprm_recipe_metadata plugin hook to alter the metadata. Something like this, for example:

    function wprm_metadata( $metadata, $recipe ) {
    	// Make changes to the $metadata
    	return $metadata;	
    }
    add_filter( 'wprm_recipe_metadata', 'wprm_metadata', 10, 2 );
    Thread Starter saqwild

    (@saqwild)

    Thanks Brecht.
    That is 2nd part of my question, is there a list of custom hook, filter and functions?

    regards
    Faisal

    Plugin Author Brecht

    (@brechtvds)

    We don’t have a list of the available hooks at the moment. Those are annoying to keep up to date and it’s just easier to tell what the hook is if someone tells us what they are trying to change, like the metadata example.

    If the hook doesn’t exist we can add it then as well, instead of someone just being disappointed that it’s not in the list.

    What are you trying to change?

    Thread Starter saqwild

    (@saqwild)

    Not trying to change but trying to add instead. Like mentioned above, I probably want to have a “contributor” tax with relevant schema added.

    Plugin Author Brecht

    (@brechtvds)

    Right. You can use the above code for that.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Rich Text Snippet For Custom Taxonomies.’ is closed to new replies.