Wordpress h1标题PHP条件2

I've the following issue,

http://i.stack.imgur.com/8Zwyj.png

Now as you can see in the image it should show recipes after "Cookies". Now the thing is sometimes the category has Recipes word. for this i'm trying to make php conditioning rule to check if recipes exist in the title then echo nothing else echo recipes.

                        else if( is_archive() ){
                        //echo __('Archive for ', 'recipe'). single_month_title(' ',false);
            echo single_cat_title('Amish '). single_month_title(' ',false). (' Recipes'); 
                    }

This the current code i've here. I need to make (' Recipes') show if it's not exist in the tile otherwise show.

Hopefully that's clear it up.

Your question was a little unclear, but I think this is what you were asking for:

<?php
        if( is_archive() ){
            $current_category = single_cat_title("", false); // Get name of current category

            // If current category contains the string "Recipes" don't add it at the end of the name    
            if (strpos($current_category,'Recipes') !== false) {
                echo single_cat_title('Amish '). single_month_title(' ',false); 
            } else {
                echo single_cat_title('Amish ') . single_month_title(' ',false) . (' Recipes'); 
            }

        }
?>