It seems like you should use hierarchies of categories, because it sounds like ‘Tiger’ belongs to the group ‘Animals’.
You can get the parent category with $category->parent
so if page category was Tiger, and parent category was Animals, this would then work.
Let me know if that would work for you and if you need more info
Related Posts:
- What Defines What Category A Post Picks (if in multiple)
- WordPress menu that shows all posts in a certain category like w3schools
- Mark menu item as current-menu-item for category
- How to list recent posts in a wp nav menu?
- Un-highlight Blog Menu Item when Category Menu Item is Selected
- Programmatically add posts from specific category to menu
- wp_list_categories() Exclude All Categories Except One
- WordPress – When visiting a `single post/ single.php` my category menu item link becomes active
- I want to add the 10 most recent posts under a parent category on the main menu
- Automatic Table of contents with categories and posts
- How to remove category and other tags from posts page
- Including categories in search results
- Count how many posts in category
- Custom Single Post By Category
- Convert custom fields to post categories
- Query posts from current year
- Adding Post Counts to Menu (Nav) Programmatically?
- Show One Category on Post
- Do I use custom post type or something else?
- How do I get the slug of a custom taxonomy category of a post?
- Featured Posts for Category Pages
- Limit function to specific post category
- Show all post titles
- Add Category name to Post Title (h1)
- Posts are not showing up on particular category
- How to display related posts by subcategory and not parent category
- Category Template: Need to display different content on first page of archives
- How to display WordPress archive into three columns [closed]
- Display post category in foreach loop with category link
- Extracting post categories
- How to limit posts by category
- Get user categories with most posts in it
- Dynamic dependent Dropdown lists for categories, sub-categories and posts
- How to display two blog categories as separate sections on one page?
- why does wordpress ignore the post args?
- How can you display all sibling categories to a post?
- get posts from Custom Post Type & Category
- Category page when using static front page
- How to enable custom Shortcodes in Post Category Description? [duplicate]
- Sort by last word in title
- How to call posts under a specific category on static front page?
- Give posts a particular template based on the assigned category
- Post-Archive like a page in a specific subdirectory
- How to display only one category in a custom post type?
- Get only X number of categories
- inserting a category into post
- Getting posts from some categories plus some individual posts
- Change layout of post depending on category
- latest post showing up twice on posts page
- Highlighting Current Category in the Archive and Feeds page
- Get current taxonomy and display query accordingly
- Different post views for different category views
- Possible?! A contextually titled back link
- Allow / show post comments in category pages
- Display a specific category in a focused area of my site
- How to select a category automatically based on a word in WordPress post title?
- Display default matabox of posts(add category) wordpress
- How display related post only in Default category on single
- How to get tags when using publish_post
- Does having category name in permalinks affect SEO when having a post in multiple categories?
- Parent menu item does not display posts when I add the sub-items
- How to 301 redirect from url with post id to permalink with post name (slug)?
- Create/Set Category as Title of Post
- How to display related post from same category in single.php
- Save All Post Permalink From A Specific Category into a .txt file
- show image gallery in archives or category page
- Page with Category Returning 1
- Using WP page password protection as defacto login
- get current index of post content in category page
- Allow registering user to select post category when signing up to blog
- Get 5 most recent categories
- Dynamically load posts based on category
- Get Categories & Posts With Type Article
- Set multi posts random categories and tags
- Keep highlight on menu item with post pages
- Add new post only in assigned category
- Changing the Category for all posts of an Author
- Custom plugin to get related posts by category
- Admin Post List Only Show One Category
- Hiding menu on mobile only when viewing posts?
- Add category attribute to custom recent post shortcode
- Same sidebar in all posts as in the category
- How do I list categories and the common categories for posts beneath those categories?
- Latest Posts not in the right order
- Retrieve latest post by multiple categories with ID
- How to Include a common category in a custom Category Search
- How to display only one post on first category page and rest on next pages?
- how to style an individual page in a category [duplicate]
- How do i put a dropdown list of ALL my post in the sidebar menu?
- Viewing category won’t show up Custom post type posts
- Show Title/Date/Excerpt of first post & only Title for rest in Query [duplicate]
- Listing category and its posts one by one
- Print out one of 2 post category [closed]
- How to get if category has posts?
- Show some texts in posts belonging to Specific category
- Dynamic Menu Item
- Sort Posts Alphabetically Based on Specific Category (Divi)
- I have a website issue I am trying to resolve
- How to sort posts alphabetically based on a specific parent category
- Get the category of post from which category page it have been clicked