[resolved] Warning: in_array() expects parameter 2 to be array, null given in index.php (2 posts)

  1. Hey, I need a quick help.... so you can visit my site wwefansnation.com

    On my site in Latest Article section, my site is showing following error:

    Warning: in_array() expects parameter 2 to be array, null given in /home/content/01/10875201/html/wp-content/themes/Canyon/index.php on line 47

    I just created this blog and I don't know anything about php....thanks please reply ASAP :)

    Below is my index.php file's latest article section:

    [please mark any posted code - http://codex.wordpress.org/Forum_Welcome#Posting_Code - the code below is already broken by the forum's parser]

    <h3 class="homhead">Latest Articles</h3>
    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    <?php  if (in_array($post->ID, $do_not_duplicate)) continue;?>
    <div class="post" id="post-<?php the_ID(); ?>">
    	<div class="title">
    		<h2><a>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
    	<div class="postmeta">
    		<span class="pmet">Posted by <?php the_author_posts_link(); ?>  on <?php the_time('M - j - Y'); ?> - <?php comments_popup_link('0 Comment', '1 Comment', '% Comments'); ?></span>
    	<div class="entry">
    		<a>"><img class="postimg" src="<?php bloginfo('stylesheet_directory'); ?>/timthumb.php?src=<?php get_image_url(); ?>&h=150&w=250&zc=1" alt=""/></a>
    		<?php wpe_excerpt('wpe_excerptlength_index', ''); ?>
    		<div class="clear"></div>
  2. Michael
    Forum Moderator
    Posted 3 years ago #

    is the array $do_not_duplicate set anywhere earlier within the template?

    you might need to contact the theme's deveoper for support, as this forum only fully supports themes from http://wordpress.org/extend/themes/

Topic Closed

This topic has been closed to new replies.

About this Topic