I am getting the following errors whenever I view "all pages" or "all posts". These two errors appear under each post or page:
Warning: in_array() expects parameter 2 to be array, boolean given in /home/content/96/9892096/html/wp-content/themes/shiword/lib/slider.php on line 33
Warning: in_array() expects parameter 2 to be array, boolean given in /home/content/96/9892096/html/wp-content/themes/shiword/lib/slider.php on line 47
Line 33 of slider.php is:
if ( in_array( $post->ID, $posts_list ) )
Line 47 of slider.php is:
if ( in_array( $post->ID, $posts_list ) )
Do I need to add something to these two lines to prevent the error message from appearing in my admin pages?
I am getting the following errors whenever I view "all pages" or "all posts". These two errors appear under each post or page:
Warning: in_array() expects parameter 2 to be array, boolean given in /home/content/96/9892096/html/wp-content/themes/shiword/lib/slider.php on line 33
Warning: in_array() expects parameter 2 to be array, boolean given in /home/content/96/9892096/html/wp-content/themes/shiword/lib/slider.php on line 47
Line 33 of slider.php is: if ( in_array( $post->ID, $posts_list ) )
Line 47 of slider.php is: if ( in_array( $post->ID, $posts_list ) )
Do I need to add something to these two lines to prevent the error message from appearing in my admin pages?
The website I am working on is http://www.polygonelite.com
Thanks,
Glenn