Miren instale un tema nuevo en el wordpress como viene por defecto y me sale este error
Warning: in_array() [function.in-array]: Wrong datatype for second argument in C:\Archivos de programa\Xampp\htdocs\wordpress\wp-content\themes\i_listen\home.php on line 9
La linea es esta
Código PHP:
if (in_array($post->ID, $do_not_duplicate)) continue;
Código PHP:
<?php get_header(); ?>
<div id="hrec">
<span class="ht"> Recent Entries </span>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post();
if (in_array($post->ID, $do_not_duplicate)) continue;
update_post_caches($posts); ?>
<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
<div class="posthome">
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">
<img style="width: 180px; height: 180px;border: 5px ridge #ededed;" src="<?php echo catch_that_image() ?>"/></a>
<div class="htitle"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php if (strlen($post->post_title) > 22) {
echo substr(the_title($before = '', $after = '', FALSE), 0, 22) . '...'; } else {
the_title();
} ?></a></div>
<div class="time"> <?php the_time('F j, Y'); ?></div>
<div class="com"> <?php comments_popup_link('Add a comment', '1 comment', '% comments'); ?></div>
</div></div>
<?php endwhile; ?><?php else : ?><?php endif; ?>
<div class="navigation">
<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); }
else { ?>
<div class="alignleft"><?php next_posts_link('« Older Entries') ?></div>
<div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div>
<?php } ?>
</div>
<div id="sidehorz">
<?php include (TEMPLATEPATH . '/twitwdg.php'); ?>
<?php include(TEMPLATEPATH."/sidebar.php");?>
<?php include(TEMPLATEPATH."/sidebar2.php");?>
<?php include(TEMPLATEPATH."/sidebar3.php");?>
</div>
</div>
<?php get_footer(); ?>
Alguien em da una mano?
Muchas Gracias!