[resolved] How to link image in excerpt to image itself instead to post? (5 posts)

  1. StefanRisticDev
    Posted 3 years ago #


    As the title says, I would love images in excerpts on homepage(or category pages) not to link to corresponding posts but the images itself.

    So, when someone go to homepage, and click on some of the posts images, he won't be redirected to the post, but will see this image in full size(either on the same or other page, it doesn't matter really).

    Any thoughts on how to achieve this?


  2. Michael
    Forum Moderator
    Posted 3 years ago #

    can you post more details such as the name and download link of your theme?

    generally, excerpts ( http://codex.wordpress.org/Function_Reference/the_excerpt ) do not show images.

    and the image links can be set when inserting or editing images in posts.

  3. StefanRisticDev
    Posted 3 years ago #

    Hello, and thank you for trying to help!

    here is the theme download link:


  4. Michael
    Forum Moderator
    Posted 3 years ago #

    I can't see any specific excerpt output in oulipo, apart from in search results.

    you are possibly using the 'more-tag' to shorten the posts; in which case any images before the more tag would show in the 'excerpt' with whatever link you have given to those images when you inserted them into the post.

    please post a live link to illustrate what you are referring to as 'excerpt' with the linked images.

  5. StefanRisticDev
    Posted 3 years ago #

    I've tried figuring out the theme code as well, but found nothing.

    You opened my eyes!

    Now I see that client was actually messing something with posts. I've cleared that up, and as you said - whatever link is given to images, that's exactly the link in the excerpt as well.

    Thanks again, problem solved.

Topic Closed

This topic has been closed to new replies.

About this Topic