Portfolio.php error in WordPress
-
Hi guys,
I created a portfolio following tutorials from my template website and I get a warning error on page. I don’t know how to fix it and make something to appear that sort filter. (http://assistbs.ro/portfolio/)in_array() expects parameter 2 to be array, null given in /home/assistbs/public_html/wp-content/themes/assistbs/archive-portfolio.php on line 238 and 241
232 $portfolio_filter = array();233 if(is_array($taxonomys)) {
$tax = 1;
foreach ($taxonomys as $key => $value ) {238 if($taxonomys[$key]->parent == 0 && isset($taxonomys[$key]->name) && in_array($taxonomys[$key]->name, $used_taxonomys) && in_array($taxonomys[$key]->slug, $current_projects) ) {
echo ‘- ‘.lambda_translate_meta($taxonomys[$key]->name).’
‘;
}
241 if(in_array($taxonomys[$key]->name, $used_taxonomys) && $taxonomys[$key]->parent != 0 && in_array($taxonomys[$key]->slug, $current_projects) ) {
echo ‘- slug.’_filt”>’.lambda_translate_meta($taxonomys[$key]->name).’
‘;
}
$tax++;
}
}248 ?>
-
Hello!
Assuming this is the website you have questions about:
http://assistbs.ro/portfolio/If that is correct, you need to take your question over to the folks at WordPress.ORG. This forum is for WordPress.COM questions.
- The topic ‘Portfolio.php error in WordPress’ is closed to new replies.