How to add recipe rich snippets to a WordPress website without a plugin?

I am a food blogger and have recently learnt about recipe rich snippets. I found some material online, mostly being about plugins. I tried using ZipList plugin, which is actually pretty good, but

  1. For some posts, I cannot add pictures within the recipe box and

    Read More
  2. I cannot add alt text to my pictures (which I find to be quite SEO-unfriendly or is it?).

So, I was thinking of trying to implement it by myself onto my website.
Any good links or advice on how to do it? I tried looking on google but I am only coming up with plugin tutorials.

Related posts

Leave a Reply

1 comment

  1. Yes, your search results are correct.

    If you don’t want to use a plugin, you have to code it yourself. But this is the kind of thing that you don’t want attached to your theme’s functions.php (“without a plugin”). Because you have to be able to swap themes and preserve this functionality. Themes are for design and content display. Plugins for functionality. All those themes with SEO incorporated are simply dumb.

    So, you end up writing your own plugin. See this article: Create a functionality plugins instead of using Functions.php.

    What is a functionality plugin?

    Traditionally, if you wanted to create a new function for your blog to add to its functionality, the advice has been to add the code snippet to your theme’s functions.php file. Now that’s all well and good and it will work fine, but what happens when you change your site’s theme (which you can guarantee will happen at least every few years) or the theme gets updated? Since functions.php is located in your active theme folder, if you change your theme, it inherently becomes defunct.

    All that being said, what I’d suggest is that you create a Custom Post Type to handle your recipe snippets. You’ll have all the default functionality of WordPress customized to your needs. The CPT could have only Title, Content and Featured Image, eventually your own taxonomy (recipe categories).

    Useful links:

    Or you can use a nice plugin to create your CPT 🙂