Skip to content

Set default featured image for post category term #62

@MichelleBlanchette

Description

@MichelleBlanchette

You can use ACF to create the image field for each post category term.

Make sure Yoast SEO's featured image is replaced, but best to find a filter hook closest to the source function of how the featured image is retrieved for a post in the first place.

This is immediately useful for Completionist posts. Also, the post's primary category is the one that should determine the featured image. I believe we're already fetching the post's primary category in the posts archive loop.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions