I have a custom post type called recipes.In this I have lots of recipes as posts.All these recipes are assigned to several categories.
Problem : Now Consider a post which is assigned to multiple categories. On single.php of that post, if i try to retrieve the category of post then I am getting the category which is alphabetically first every time.
I have tried retrieving category from url but it is possible only if I go to recipe template THROUGH the category template...
How to tackle this if we have a post assigned to multiple categories...Please help