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 ?>
-
Hi,
I think you might have a self-hosted blog. If you have a self-hosted blog, you need to ask support from WordPress.org instead. Their support forum is at http://wordpress.org/support/
Just create an account there if you don’t already have one and they should be better able to help you there.
(The WordPress.com forum is for blogs hosted at WordPress.com)
For more info about the differences between .com and .org, see here: http://en.support.wordpress.com/com-vs-org/Good luck!
- The topic ‘Portfolio.php error in WordPress’ is closed to new replies.