Object of class WP_Post could not be converted to int
-
On my events calendar page, I’m seeing this error in the web browser tab instead of the correct page title (Club Events Calendar):
<br /> <b>Notice</b>: Object of class WP_Post could not be converted to int in
<b>/home/bccwnc5/public_html/wp-content/themes/twentytwelve/functions.php</b> on line <b>249</b><br />Web page:
https://www.bccwnc.org/events-calendar-page/Using Twenty Twelve theme version 2.5
Here are Lines 248, 249, 250 from twenty twelve functions.php file:
// Add a page number if necessary.
if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) {
$title = “$title $sep ” . sprintf( __( ‘Page %s’, ‘twentytwelve’ ), max( $paged, $page ) );All of the other pages on my website do NOT show this error.
The page I need help with: [log in to see the link]
- The topic ‘Object of class WP_Post could not be converted to int’ is closed to new replies.