Recipes by Ingredient
[insert_php]
// Make an array from A to Z.
$characters = range(‘a’,’z’);
// Check if $characters exists and ensure that it is an array.
if( $characters && is_array( $characters ) ) {
foreach( $characters as $index=>$character ) {
// Get the tag information for each characters in the array.
$tags = get_tags( array(‘name__like’ => $character, ‘order’ => ‘ASC’) );
// Output a wrapper so that our arrays will be contained in 4 columns.
if ($index != 0 && $index % 4 == 0) {
$html = “