WordPress.org

Ready to get started?Download WordPress

Forums

Customizr
Get A Warning: in_array() [function.in-array]: (3 posts)

  1. Ngikik
    Member
    Posted 11 months ago #

    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.

  2. ElectricFeet
    Member
    Posted 11 months ago #

    How do you mean "in the box the code"?

  3. Ngikik
    Member
    Posted 11 months ago #

    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,

Reply

You must log in to post.

About this Theme

About this Topic