I posted a short how to add extra fields to categories and once you have that done you can link the attachment using the attachment URL or the ID of the attachment.
Related Posts:
- get_post_meta not working on category.php
- How to link images of one WP site to another WP site?
- remove links from images using functions.php
- Woocommerce get category image full size
- Disable image attachment links
- How to add classes to images based on their categories?
- Category links suddenly started giving 404 errors
- How can I get a different image size, if all I have is the link?
- How to add a rel attribute to images that contains their categories?
- Attachment page per category
- How to run WP_Query to retrieve attachments to posts only from a particular category?
- Any way to assign Post Categories and Tags to Links?
- Display the featured image from the last post
- Is it possible to select and edit the way the most recent post from a certain category is displayed on the page?
- Set the default category of an attachment
- How to enable category hierarchy for links?
- Add Image Size for one Media Category Only
- Extract image url associated to a category
- Retrieve Image from Media Library by it’s category
- Show category images on single product page and product overview page
- Combining post categories and link categories?
- Displaying a full post instead of a slug per category?
- Class active for Archive link – looped out
- Why do my categories redirect?
- Remove product category placeholder image (Woocomerce)
- Get category url in loop
- Change thumbnail image depending product category
- Get attachments for posts that belongs to a specific category
- category image taxonomy
- How to limit number of attachments
- Older entries link within category page
- Style category link depending on category ID
- Random Featured Image Based on Category
- Get paged category link programmatically
- Category images are not displaying in WordPress
- Link To Child Category For A Post
- How do you use the featured image of the most recent post in a category as the background image
- Need to echo category id in multi-dimensional array
- How to not display a category post on blog page?
- Change categories count to include media attachments
- Link from navbar to categories
- Category view with contents of [gallery]s shown
- javascripts files not linking to my category slugs?
- wp_insert_link not working
- 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 list posts from a sub-category that is listed in a parent category (more details below)?
- 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
- Show Subcategory Name Instead of Parent Category
- Link For Portfolio Categories
- Icon images across multiple categories
- Multiple if statements with else for get_the_category [closed]
- How get all media from a posts category by db?
- 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?
- How to get the link of all categories
- Display one post on category.php: Wrong featured image
- Surround uploaded image link with div
- Category page with gallery for each post
- Image menu showing categories in page
- Featured image for links and categories
- Categories as selectable links on submission form
- Displaying categories and subcategories without link
- 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 get category slug link? ( include parent categories)
- How to create a photo gallery that can be filtered by the image categories
- Images as Categories
- Checklist of selected categories
- Custom color for each category name
- Show posts of one category only with Custom Taxonomy on single.php
- Wrap a chosen category name with div
- Listing Parent, Child and GrandChild Categories and then the PostTitles on Page Template !
- Add image attachment to post via coding?
- Category tree is flattened inside admin upon saving
- Exclude category from fucntion
- New Categories Not Shown In the Post Edit Page
- Customizing the attachement page to show rest of all images in a gallery from post
- Place category Base URL at the end
- Listing Texts of Which Custom Field is Null
- How to set a filter by category within a customised page
- Post Count for Categories, however not to calculate a total
- Creating a custom feed for categories that includes the first post’s featured image
- Get categories without post
- School & class blogs – renaming/archiving post categories?
- List just subcategory and products of active category page in Woocommerce
- Custom Meta Box (SELECT2) Not Saving Taxonomy Terms
- filter a loop base on specific category
- Custom image size not displaying with wp_get_attachment_image()
- get_the_category return empty inside loop
- How to exclude a specific categogy from a custom page template
- Category Templates for Post Types not Working
- Change category base based on category
- Need help with category page customization meeting certain condition
- chose category in plugin