array_search() [function.array-search]: on the index page
-
Good Day Guys
I installed a new theme, which a absolutely love, and my client loves it as well, but I get an error on the index page which I been trying to sort out in the past few days.
I get this error:
Warning: array_search() [function.array-search]: Wrong datatype for second argument in /home/……/wp-content/themes/templatename/index.php on line 15
The section of the code on the index page is `
}
$ctr = 5;
if (have_posts()) : while (have_posts()) : the_post();
if (array_search(get_the_ID(), $do_not_duplicate) !== false);
?><?php $feature_img = get_post_meta($post->ID, ‘Image’, ‘true’);
$feature_desc = get_post_meta($post->ID, ‘img_description’, ‘true’); ?>
<?php if ($ctr < 2) {
$ctr++;
}`It might be a simple solution, but I can’t figure it out for the life of me.
Thank you in advance
- The topic ‘array_search() [function.array-search]: on the index page’ is closed to new replies.