Title: Popup comments on Page errors
Last modified: August 18, 2016

---

# Popup comments on Page errors

 *  [prissed](https://wordpress.org/support/users/prissed/)
 * (@prissed)
 * [20 years, 12 months ago](https://wordpress.org/support/topic/popup-comments-on-page-errors/)
 * I tried enabling popup comments on all pages (index, posts/permalinks, pages).
 * Commenting out (or deleting) this line in comment-functions.php:
    `if (! is_single()&&!
   is_page()) {` and the closing `}`
 * gets comments to display on posts, and pages. Comments work fine on posts/permalinks.
   But when clicking on the popup comment link on a page, produces an error on the
   popup.
 * It doesn’t like the foreach($posts as $post) line.
 * Does anyone know what would need to be done to get it to work on Pages also?
 * The site is: [http://wired.webcrap.net/](http://wired.webcrap.net/)
 * Example of a page w/popup comments: [http://wired.webcrap.net/changing-faces/](http://wired.webcrap.net/changing-faces/)
 * Any help would be much appreciated.

Viewing 1 replies (of 1 total)

 *  Thread Starter [prissed](https://wordpress.org/support/users/prissed/)
 * (@prissed)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/popup-comments-on-page-errors/#post-209258)
 * Well, since no answers yet (probably due to my cryptic post), what about this:
 * What is a “Page” considered, as far as the variable goes?
 * If popup comments use foreach($posts as $post), would I be able to setup an array(
   based on whatever a “page” post is), using something like:
 * `$arr = array($posts,$pages)`
    `foreach($arr as $post)`
 * I’m drawing straws here, of course…so, again, any input would be appreciated.
   😀

Viewing 1 replies (of 1 total)

The topic ‘Popup comments on Page errors’ is closed to new replies.

## Tags

 * [Popup Comments](https://wordpress.org/support/topic-tag/popup-comments/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [prissed](https://wordpress.org/support/users/prissed/)
 * Last activity: [20 years, 11 months ago](https://wordpress.org/support/topic/popup-comments-on-page-errors/#post-209258)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
