• I’ve tried some plugins to support my open graph, rich snippets, twitter cards, schema, etc. but I don’t like how they do it. For instance, a lot of times a single image or video post will still be article. Or a single map can’t be made into a map.

    I was looking at some code in pluigins but my question is, in my FUNCTIONS.PHP or in my header with a plugin, is there conditional code I can add that says to the effect of:

    Place in header
    If single and category is video then
    (open graph code)
    If single and category is map then
    (open graph code)

    I figured a way to disable the opengraph support from plugins I use already so I have the other meta data just no specific social meta data. I’d like to do this per post, but not manually with custom fields if I can avoid it…

  • The topic ‘Custom Meta Data /Open Graph Per Post’ is closed to new replies.