Your theme doesn’t necessarily include all these template files.
It might just use index.php
to serve the single page template as well as listings (category, date, author, tag, etc).
The articles Theme Development and Template Hierarchy from the codex should get you on the right road with theme development.
If you add a single.php
file, WP will use that instead of index.php
for example.
‘product-category.php’ (as @ialocin rightly says) is almost certainly a WooCommerce template file and the way you override that is different. They have good docs: http://docs.woothemes.com/document/template-structure/
The general principle is the same – you override the default template (index.php) with successively more-specific templates.
Related Posts:
- Custom page for WooCommerce’s /product-category/
- How to override Category rendering mechanism
- WooCommerce IF statements not working
- How to differentiate the homepage structure from the category page structure in WordPress template?
- How to edit woocommerce sub-category page
- Display All Products by Category with WooCommerce
- Woocommerce get category image full size
- Preventing index.php?category_name=something from redirecting
- Make all subcategories use the template of its category parent?
- Listing Category ‘child_of’ by slug rather than ID
- Programmatically create product category and add thumbnail in woocommerce
- Create product category and keyword search form in woocommerce? [closed]
- Display only deepest category on a single post?
- How do I set a specific template for sub-categories?
- How do I edit pre_get_post for the category the user is currently in?
- Display WooCommerce product categories in a 4 columns custom menu [closed]
- Hide uncategorized products from the shop page
- is_archive() content being shown instead of is_category()
- How to control template resolution if both Author and Category filter in place?
- Which php file lists all the post of a category
- Apply custom category template to subcategories
- Listing Parent, Child and GrandChild Categories and then the PostTitles on Page Template !
- Get woocommerce catogry
- Are Category or Tag Archive Pages Possible?
- Possible to make a subdirectory that loops through a single category?
- WC 3.x Get categories from variable product of the cart
- How to display only posts assigned to a particular, isolated, subcategory
- Highlight wp_nav_menu when category is selected
- need to add custom field in more products
- How to redefine the sorting of product categories by menu_order?
- Different templates for different category tags
- Pagination not visible on woocommerce’s category page
- Best way of getting WooCommerce category path
- Get parrent category name
- Sorting category products not working
- Only one post is showing on category page, why?
- Does “show_option_all” in wp_list_categories do anything?
- Sub category templates
- Custom taxonomy template for categories
- Categories are not listing their respective products
- Display single category name in woocommerce loop
- Building Menu from Woocommerce Product Categories
- Include WooCommerce product to all child categories
- woocommerce related products by specific categories [closed]
- Problem with different query loops (and “main loop”) on category template page!
- How can I display the number of post associated to a category in Twig/Timber WordPress? [closed]
- Is it possible to have a template that works on multiple categories where the link address contains the specific category?
- List just subcategory and products of active category page in Woocommerce
- Display all product tags associated with a specific product category
- How to get the current category with custom posts
- Custom tax_query filter not working for Woocommerce product categories
- How do order product categories – on a parent category page – in Woocommerce?
- Remove any product that is featured from regular display loop [WooCommerce]
- Using if statement in index.php instead of creating separate template files
- Displaying year once in category.php [duplicate]
- Assigning certain pages or posts to use the template of the parent page or category
- How can I include custom category and tag base in template files?
- Detect category choice for posts with multiple categories
- Include home page template in specific category template
- Showing different posts on category pages
- displaying the last product comment in the woocommerce category
- Woocommerce only display child category when parent is checked (on add new product page)
- category description not showing in my woocommerce
- Show audio player only in specific post type category
- How to make product image inherit from category image
- How to set acf color field as background color to product category
- How to target all woocommerce categories that don’t have any subcategories in them?
- In if…else condition, the else statement shows even if if statement is correct
- How can I display all products from all categories on one page with woocommerce?
- How to add all subcategories as submenu in WordPress menu
- Show alternative menu based on page template AND post category
- selecting categories that have products with tag/category
- Restrict retrieved terms by category?
- Custom Archive Template for Multiple Categories
- Woocommerce Category Sort Dropdown
- Woocommerce: all products of all categories instead products of one category
- How to load terms of a custom taxonomy of a product in woocommerce cart page
- How to get WooCommerce Product Categories and its children’s children?
- Category custom template is not showing correct posts
- Woocommerce change tag_id to name
- Choosing different templates for categories
- Show posts from all categories
- Most efficient way to have 1 template for parent, 1 template for child categories?
- Category menu that filters out empty categories
- Category Templates for Post Types not Working
- One category not displaying template updates
- How do I get a single page navigation depending on the previous page?
- Add 1 category more to If_in_category statement
- Dynamically Adding Category Specific Content To Specific Category & Subcategory Pages
- Custom Woocommerce Category view
- Category Template – to be editable from the backend?
- have_posts is empty on category.php
- How to create a template for categories
- WooCommerce category display in custom page
- Sorting Woocommerce products by category and attributes
- Woocommerce custom taxonomy order
- Update wordpress menu with woocommerce products
- How to get Woocomerce categories count
- Get all categories
- Restricted category in Woocommerce [closed]