Title: Get A Warning: in_array() [function.in-array]:
Last modified: August 21, 2016

---

# Get A Warning: in_array() [function.in-array]:

 *  [Ngikik](https://wordpress.org/support/users/ngikik/)
 * (@ngikik)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/get-a-warning-in_array-functionin-array/)
 * Hi,
 * I get a message warning on my website. It informs:
 * Warning: in_array() [function.in-array]: Wrong datatype for second argument in
   themes/customizr/parts/class-content-gallery.php on line 25
 * Could you please advice what should I do?
 * In the box, the code:
 *  function tc_fancybox_gallery_filter( $output, $attr) {
 *  tc__f(‘rec’ , __FILE__ , __FUNCTION__, __CLASS__ );
 *  //add a filter for link markup
    //add_filter( ‘wp_get_attachment_link’, array(
   $this, ‘tc_modify_attachment_link’) , 20, 6 );
 *  //COPY OF WP FUNCTION IN media.php
    $post = get_post();
 *  static $instance = 0;
    $instance++;
 * I’m a newbie and confuse what should I do.
 * Please your advice, Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [ElectricFeet](https://wordpress.org/support/users/electricfeet/)
 * (@electricfeet)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/get-a-warning-in_array-functionin-array/#post-4169292)
 * How do you mean “in the box the code”?
 *  Thread Starter [Ngikik](https://wordpress.org/support/users/ngikik/)
 * (@ngikik)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/get-a-warning-in_array-functionin-array/#post-4169296)
 * Hi #ElectricFeet,
 * It’s the code I found in :
    Customizr: class-content-gallery.php on line 25
 * However, It’s already fix after I deactivate all plugins. It’s all because I 
   installed some plugins as I want to put recent posts on my page (just like front
   page) and not in side bars. But, sometimes my website goes to ‘white blank page’
   or get a warning like this.
 * Could you please help me how to put automatically our recent posts in content
   of a page?
    I found this code from:
 * [http://wordpress.org/support/topic/recent-post-for-page-not-widget?replies=7](http://wordpress.org/support/topic/recent-post-for-page-not-widget?replies=7)
 *     ```
       <?php query_posts('showposts=5'); ?>
       <ul>
       <?php while (have_posts()) : the_post(); ?>
       <li><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></li>
       <?php endwhile;?>
       </ul>
       ```
   
 * And I get white blank page again on my website.
 * Thanks in advance,

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Get A Warning: in_array() [function.in-array]:’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/customizr/4.4.24/screenshot.png)
 * Customizr
 * [Support Threads](https://wordpress.org/support/theme/customizr/)
 * [Active Topics](https://wordpress.org/support/theme/customizr/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/customizr/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/customizr/reviews/)

## Tags

 * [function.in-array](https://wordpress.org/support/topic-tag/function-in-array/)
 * [warning](https://wordpress.org/support/topic-tag/warning/)

 * 2 replies
 * 2 participants
 * Last reply from: [Ngikik](https://wordpress.org/support/users/ngikik/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/get-a-warning-in_array-functionin-array/#post-4169296)
 * Status: not resolved