• Hello everyone,

    I’m trying to display the featured image of my posts and pages in full size before each content.

    My problem si that I just want to display the image, and get_the_post_thumbnail always gives me something like

    <img the featured image />

    I just want to display the image, no link.

    I’ve been reading the documentation about get_the_post_thumbnail(), the_post_thumbnail() and even wp_get_attachment_image() with that but I can’t get to my goal.

    How could I do that ?

Viewing 2 replies - 1 through 2 (of 2 total)
  • the post thunbnail is generally not linked from within the function ‘get_the_post_thumbnail()’;

    possibly the link comes from within your theme, either directly from within the tempalte, or from a filter function.

    you will need to locate and edit the corresponding code, ideally via a child theme, to remove the link tag from around the thumbnail code.

    what theme are you using?

    Thread Starter Sushi_Overdose

    (@sushi_overdose)

    I am using “Tempera”.

    So I’ll try to locate this with the theme. Thanks !

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to post a thumbnail with no link behind the image’ is closed to new replies.