and like us on FB

These two functions are to support the basic Food2fork recipe shortcode provided here. The purpose of our functions is to scrape the destination cooking website for cooking methods (your own of course – don’t steal). They’re very basic and far from ideal given their reliance on regular expressions to parse the HTML.

We’ve provided just two examples: one for BBC Good Food, and other for

Any part of the page can be parsed for appropriate content. What follows is just an example.

BBC Good Food

Example use:

All Recipes

Example use:

Both functions return the text method in an ordered list.

Shortt URL for this post: