• 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)
  • How do you mean “in the box the code”?

    Thread Starter Ngikik

    (@ngikik)

    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

    <?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.