$term_id = get_terms('category');
is unnecessary, the current category object is held within $film_category
. $film_category->term_id
will give you the ID of the category you are currently fetching posts from.
Related Posts:
- Woocommerce get category image full size
- Return array of categories to php function
- Listing all posts from current category on page
- Display WooCommerce product categories in a 4 columns custom menu [closed]
- Show post only if match all categories
- Dropdown category filter
- Display the featured image from the last post
- Add Image Size for one Media Category Only
- Extract image url associated to a category
- Retrieve Image from Media Library by it’s category
- Resort get_categories
- Show category images on single product page and product overview page
- Link Attachment Image to Category
- Change thumbnail image depending product category
- category image taxonomy
- get_post_meta not working on category.php
- How to use an array of categories as a dropdown?
- Redirect to another page using contact form 7? [closed]
- Create menu locations for each category in wordpress
- Random Featured Image Based on Category
- Use premade array as categories in wp_query?
- Array: What is this value based on?
- Category images are not displaying in WordPress
- How to get an array with all categories and corresponding names?
- Link To Child Category For A Post
- List a maximum of ‘x’ product categories with qty of ‘y’ in each column
- How do you use the featured image of the most recent post in a category as the background image
- Getting Category Children
- I need to exclude from a query a category and a few custom taxonomies
- Category view with contents of [gallery]s shown
- How to add image for all posts associated to specified category?
- How to display WooCommerce category image in my category page banner as a background?
- How to make product image inherit from category image
- How to display categories image in loop homepage WordPress
- Change background image page header overlay for each category
- Image Upload Custom Form Field for Category and Custom Taxonomy
- Icon images across multiple categories
- Cant get unique_array() work on get_the_category() foreach loop
- Media Categories as Classes on WordPress Gallery Shortcode
- How to relocate images
- In a shared site, how to get products in a category from one site to another?
- Display one post on category.php: Wrong featured image
- Category page with gallery for each post
- Matching usermeta at registration to categories of content
- Image menu showing categories in page
- How to change category id on get_posts array
- Get all first images of posts in same category
- Add category image before post title on homepage
- how do i set an image for a category in admin panel
- How to link images of one WP site to another WP site?
- How to define category ID in an array?
- Order Categories by Character Count
- How to create a photo gallery that can be filtered by the image categories
- Images as Categories
- how do I exclude a category foreach
- Activate Gutenberg in category-descriptions
- How to show subcategories in categories else show posts
- How would I increase the Author Role to be able to add a new category?
- How to remove the parentheses from the category widget
- How to: 301 Redirect /category/ to /customname/
- Display one latest post from multiple categories
- Archive pagination causing 404 with permalinks structure
- Get a list of Terms for a specific category
- Remove Archive Headline and Archive Intro Text fields on category and tag archive pages in WordPress Admin with Genesis framework
- How Do I Merge Categories With phpMyAdmin
- Edit the markup of categories list
- Show category children, one level
- a-z list, categories and sub categories in loop
- Random taxonomy category list
- Show all posts for a specific category/author
- One Specific Category To Permalink
- WordPress category widget only show categories with children
- Woocommerce custom category page with pagination [closed]
- Custom post and category template pagination problem
- How to list all categories in three divs dynamically based on the quatity of categories?
- Limit categories and it’s subcategories for specific group of users
- show all WordPress categories in a page
- Category specific order
- Remove the number of posts displayed in wp_list_categories()
- Problems with my conditionals in single.php by category
- WP_safe_redirect not working
- Do not show sub categories in the loop on archive-product.php
- Having a template per category? Bad for server overhead?
- “Virtual category page” based on a custom field filter
- Get the id of all images in a post
- ID of last created category
- Limit Loop to One Category
- wordpress taxonomy query posts
- Different header for each category
- Code for Category, Tags, Archive URLs
- Display all subcategories from parent category
- How to show WooCommerce Categories on ‘shop’ page instead of products?
- How to list all subcategories from all categories but not from a certain category
- Automatically create tags and merge with categories
- How to insert category to post via php?
- Show Subcategory Name Instead of Parent Category
- Get category id of next / prev post inside the_post_navigation
- Custom built theme won’t filter categories
- Narrow Down a Shop Page Results Based on a Product Tag in WooCommerce
- How to control order when displaying child categories