I current have a blog that is not using post titles. Inside of each individual post there are links to category pages.
The problem is coming when I have the same link inside multiple posts and getting the comments to work.
To give you an idea my blog is currently setup like this:
Post #1 contains the link “(56543):” which goes to the URL mydomain.com/code-errors/56543
Post #4 also contains the link “(56543):” and goes to same URL above
So far so good, the problem is being able to leave comments for each individual post.
Example: (same as above but with comments)
Post #1 contains the link “(56543):” which goes to the URL mydomain.com/code-errors/56543
Leave a comment >> goes to URL mydomain.com/code-errors/56543#respond
Post #4 also contains the link “(56543):” and goes to same URL above
Leave a comment >> goes to URL mydomain.com/code-errors/56543-2#respond
So obviously with the -2 added it’s going to come up with a 404 error. How can I make it so my template will generate for the -2, -3, -4, etc URLs?
The topic ‘Link in multiple posts and getting comments to work’ is closed to new replies.
(@poizster)
15 years, 7 months ago
I current have a blog that is not using post titles. Inside of each individual post there are links to category pages.
The problem is coming when I have the same link inside multiple posts and getting the comments to work.
To give you an idea my blog is currently setup like this:
Post #1 contains the link “(56543):” which goes to the URL mydomain.com/code-errors/56543
Post #4 also contains the link “(56543):” and goes to same URL above
So far so good, the problem is being able to leave comments for each individual post.
Example: (same as above but with comments)
Post #1 contains the link “(56543):” which goes to the URL mydomain.com/code-errors/56543
Leave a comment >> goes to URL mydomain.com/code-errors/56543#respond
Post #4 also contains the link “(56543):” and goes to same URL above
Leave a comment >> goes to URL mydomain.com/code-errors/56543-2#respond
So obviously with the -2 added it’s going to come up with a 404 error. How can I make it so my template will generate for the -2, -3, -4, etc URLs?