Hacker News new | ask | show | jobs
by jinp6301 5606 days ago
If you click on an image on a post on the main page, it redirects to the main page instead of going to the post. I assume you want it to link to the actual post.
1 comments

Yeah, that's an issue I'm working out. When inserting an image WordPress inserts the URL for the image attachment page so with some help I have a function that checks for the permalink and puts that in the link box by default. If the post is a draft it doesn't have a permalink so it just puts the domain in.