Foros del Web » Creando para Internet » Sistemas de gestión de contenidos » WordPress »

Como solucionar Warning: in_array() [function.in-array]:

Estas en el tema de Como solucionar Warning: in_array() [function.in-array]: en el foro de WordPress en Foros del Web. Hola gente! 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 ...
  #1 (permalink)  
Antiguo 10/01/2010, 21:33
 
Fecha de Ingreso: mayo-2008
Ubicación: En algun lado!
Mensajes: 86
Antigüedad: 16 años
Puntos: 1
Como solucionar Warning: in_array() [function.in-array]:

Hola gente!

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; 
Y este el codigo

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), 022) . '...'; } 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('&laquo; Older Entries'?></div>
            <div class="alignright"><?php previous_posts_link('Newer Entries &raquo;'?></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(); ?>
Busque pero no encontre como solucionarlo!

Alguien em da una mano?

Muchas Gracias!

Etiquetas: warning
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Tema Cerrado




La zona horaria es GMT -6. Ahora son las 17:16.