Selecting a post after a while loop on other posts
-
Hey all,
I took a commercial theme and modified it to fit my blog here: https://www.wysinnwyg.com/blog, even though I’m not very familiar with wordpress at all.
The latest modification I did was to add, at the end of a post, a while loop that publishes the 4 most related posts to the current post.
The problem I have now is that, when single.php calls comments_template() at the end of the related posts, the selected the_post() is the LAST in the while loop, and so the comments published are not the ones related to the post on the current page, but the comments on a related post.
How do I fix this?
thanks
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Selecting a post after a while loop on other posts’ is closed to new replies.