What I did was; using the Taxonomy Images plugin to associate an image with each category, then to my theme’s header.php, below the <a>
line in the above code;
<?php
$image_id = apply_filters( 'taxonomy-images-queried-term-image-id', 0 );
if ( is_category() && ! empty( $image_id )):
print apply_filters( 'taxonomy-images-queried-term-image', '',
array(
'image_size' => 'header'
) );
else : ?>
And add <?php endif; ?>
below the endif ‘end check for featured…’
and defined the header image size in functions.php with
add_image_size( 'header', 960, 260, true );
Related Posts:
- why get_the_post_thumbnail( the_ID()) echos extra post id
- Can I set a default featured image for a category?
- How to get category and archive title?
- Get rid of WordPress category, tag and author archives?
- Category archive by year with permalink support /category/YYYY
- get_categories for custom post type with a specific custom taxonomy attached
- How To Modify The Loop in archives.php To Have 11 Posts Per Page and CSS Styling
- How can I add the featured image functionality to a custom taxonomy?
- 404 Error On Category and Tags Pages
- Force WordPress to Show Pages Instead of Category
- Decreasing the Memory Consumption of a WordPress Site?
- How can I make post fields required in WordPress?
- What’s the URL for a category archive?
- Sort posts by tags in category pages
- How to get the category of the post and link it to the archive (of the category)
- How to hide a specific category posts in my monthly archive?
- Optimal way to redirect home page to category archive?
- Display posts links from a category group by year
- Display list of Sub-Categories and the posts they contain, within one main Category
- How to add a background image to category and display image on category page
- Sort category page with custom field
- How to create tabled index of posts in a certain category
- How would you create a “weekly” archive?
- Sticky Posts Not Sticking to Top of Category Archive
- Root level category, tag, author and archive pages to work
- Category Specific Archive
- How to have Multiple Archives Widgets, one archive widget per category (in a different page)?
- Are Custom Taxonomy Templates Possible?
- “Sticky” posts for each category (archive.php)
- I want exclude the particular category in sidebar
- How to filter archives both by category and tag?
- Remove Archive Headline and Archive Intro Text fields on category and tag archive pages in WordPress Admin with Genesis framework
- Display only posts from referred category on date archive page
- Using widget logic I want to show only a widget on the archive page if there are no posts
- What type of page should i use? static page or category page? and what’s the difference? [closed]
- Creating archive pages for children categories
- Display “add to cart” button on every listing in product category page?
- WordPress categories being called “archives” in google links. How to remove?
- Display the featured image from the last post
- conditional for sub category on archive page
- Sorting posts by season
- Different excerpt styles per category, but chronological
- Display child categories in WooCommerce
- weekly archive for custom category
- WP_Query() returns null when results exist!
- How to make a Thumbnails Mosaic
- WordPress subcategories return 404 in custom template
- Display category name on featured image in wordpress excerpt
- How to remove category titles?
- Show archives by year from just one category
- Archives for each category on WP Multisite
- Archive.php filtered by pre-determined category
- How do I call posts with a certain tag?
- Category being displayed without base parmalink
- How to change category and year archive permalinks/rewrite rules?
- How can I define a custom archive for childs of a specific category?
- Get parrent category name
- Restoring default article pagination on archives – Removing custom limits
- Category archive rewrite rule to include category/subcategory?
- add_rewrite_endpoint returns 404 on archives
- Multiple category archive page
- Custom archive.php: retrieve right post categories?
- wp_dropdown_categories() scripts working erratically on sidebar
- Yearly Archive for Categories with dropdown
- Category archives with monthly pagination
- Customize category page for different custom taxonomies
- Display thumbnails for certain category posts
- Random Featured Image Based on Category
- Category archive is displaying all posts rather than the specific category
- How to Remove a Title from All Category and Tags Page?
- Do not show sub categories in the loop on archive-product.php
- Category images are not displaying in WordPress
- About title on a page
- display category list year wise in wordpress
- How to display post in custom file not in archive file?
- WordPress showing wrong category name
- Media (images, videos, etc.) not showing on Category page
- WordPress monthly archive category specific
- Problem with multiple loops in wordpress theme
- Displaying year once in category.php [duplicate]
- what file I need to create to work date archive links?
- Archive filtering
- Random category with recent post title and thumbnail
- Show Secondary Sidebar on Category pages (archive)
- How to add icon over specific thumb
- Rebuilding a Site: How to Show Several Category Posts in Woo Framework Theme?
- Displaying a custom field in Category Archives
- Display post thumbnail for specific category outside the loop
- Add multiple orderby with pre get posts
- How to add image for all posts associated to specified category?
- show only sub categories if available?
- Redirect Problems with Archive Page and GET variables
- exclude certain categories form archive widget
- How to display WooCommerce category image in my category page banner as a background?
- Different post slug based on archive
- List of post categories only associated to another custom taxonomy
- How do I make an array to get the category name, dynamically, in an archive template?
- How to make product image inherit from category image
- How to prevent WordPress from redirecting single page to prefixed category archive with same name?
- show thumbnail for subcategory wordpress