Archived topic
Is it possible to remove the featured image link, in an archive listing?
3 replies · Started by Ben on May 21, 2020
Hi,
I have a custom post type with its own archive template in child theme (I'm using "content-link.php" as the page type)
Is there a way I can remove the link from the featured image in the archive listing? (I dont want to link to the single views)
Many thanks
Ben
Hi there,
This should help:
https://docs.generatepress.com/article/generate_featured_image_output/
Adding PHP: https://docs.generatepress.com/article/adding-php/
Let me know :)
Thanks Leo, that code works but targets all featured images.
Can it be adapted to just target a specific CPT, eg
if ( is_post_type_archive( 'clients' ) )
?
Should be similar to this code here:
https://generatepress.com/forums/topic/custom-post-type-2/page/2/#post-993052