Reputation: 231
I'm displaying the content in wordpress, I'm usint the_content
inside of the loop and everything is working great, I get an image and the text of the post.
The only thing that I don't want is that the image link would take you to the attachment page, I want the user to be directed to post permalink.
Upvotes: 0
Views: 2254
Reputation: 393
You can control the nature of the image inserted into the post via the Visual Editor. Click on the image, and select "Edit Image". Then, find the option for "image links to" (file, page, or none). Change from "page" to either "file" or "none".
Upvotes: 1
Reputation: 57
Edit the post and change the URL the image points to. You can do this by clicking the little edit icon when you click on the image.
Alternatively, remove the image link altogether.
Upvotes: 1