• I keep receiving this error message when trying to view the post on my staging site:

    “Warning: count(): Parameter must be an array or an object that implements Countable in…post-template.php on line 317”

    This is lines 317 thru 320:

    if ( $elements[‘page’] > count( $elements[‘pages’] ) ) {
    // Give them the highest numbered page that DOES exist.
    $elements[‘page’] = count( $elements[‘pages’] );
    }

    Can anyone help find a fix for this, so my posts display?

  • The topic ‘Warning: count(): Parameter must be an array or an object that implements Count’ is closed to new replies.