In Genesis Slack chat, a user asked:
Anybody know of a filter where I can modify the URL of the featured images on a CPT archive page? I have a custom field called 'item_url' that I'd like to use for the link on the featured imageThis can be done by conditionally removing the standard featured image output by Genesis per theme settings and in its place display custom output. We shall set the featured image's URL to the value of custom field, if present or to the permalink if the custom field is empty. Genesis theme settings: When editing the Custom Post Type entry: on the CPT archive page: Add the following in child theme's functions.php:
To view the full content, please sign up for the membership.
Already a member? Log in below or here.