Hey guys I can call comments_template() at the top of my app and it works. But when i try to call it at the bottom it is empty.

Here's what I tried:

  • calling wp_reset_postdata() after each loop. No effect, still empty template
  • Calling the_post() before comments_template() causes Notice: Undefined offset: 1 in /app/public/wp-includes/class-wp-query.php on line 3071
  • grabbing the post id at the start of page and doing setup_postdata with post oject. Still doesn't work

any ideas here?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.