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?
(@prissed)
20 years, 12 months ago
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/
Example of a page w/popup comments: http://wired.webcrap.net/changing-faces/
Any help would be much appreciated.