• 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: https://wired.webcrap.net/

    Example of a page w/popup comments: https://wired.webcrap.net/changing-faces/

    Any help would be much appreciated.

Viewing 1 replies (of 1 total)
  • Thread Starter prissed

    (@prissed)

    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.