Hello,
I am trying to make my single category archives display in the same look as my main blog. I tried using:
add_filter(‘avf_blog_style’,’avia_change_category_blog_layout’, 10, 2);
function avia_change_category_blog_layout($layout, $context){
if($context == ‘archive’) $layout = ‘single-big’;
return $layout;
}
But I am getting this error:
Warning: Use of undefined constant ‘avf_blog_style’ – assumed ‘‘avf_blog_style’’ (this will throw an Error in a future version of PHP) in functions.php on line 47
Warning: Use of undefined constant ’avia_change_category_blog_layout’ – assumed ‘’avia_change_category_blog_layout’’ (this will throw an Error in a future version of PHP) in functions.php on line 47
Thanks
Hey Pappasdg,
Please check the single quotes in the code, they might be incorrect.
’
should be
'
Best regards,
Victoria