Archived topic
Remove link form title and feature image in custom archive page
3 replies · Started by Silvano on November 23, 2020
Hi guys
I created a CPT and uses a custom archive page that is basically a copy of the archive page, to list these CPTs. These CPTs will only be shown on this archive page so the title and image do not need to be linked to the sigle post. I would like to know if there is a filter that makes it possible to remove the links or do I have to make a new archive page?
Hi,
Check this for post image:
https://docs.generatepress.com/article/generate_featured_image_output/
For titles, check this:
https://docs.generatepress.com/article/generate_get_the_title_parameters/
Within these links are PHP snippets that lets you remove the link around your image and title.
Let us know if it works for you.
Hi Elvin,
worked perfectly.
thank You very much!
Nice one. No problem. :)