Tagged: categories, category, posts
Hi – I just noticed that when I click on a category archive it’s showing all my posts, rather than the posts which are in that category. You can see an example on these pages
http://www.touchscreenjukeboxes.co.uk/category/itunestouch-freeware/
http://www.touchscreenjukeboxes.co.uk/category/software/
There is a post on there for wireless speakers and that’s in the hardware category.
Have I done something wrong?
Thanks
Yes, this is a bug with the grid view layout. We’ll fix it in the next version. To fix it open up archive.php and replace:
$atts = array('type' => 'grid', 'items' => get_option('posts_per_page'), 'columns'=> 3, 'class'=>'avia-builder-el-no-sibling', 'paginate'=>'yes');
with:
$atts = array(
'type' => 'grid',
'items' => get_option('posts_per_page'),
'columns' => 3,
'class' => 'avia-builder-el-no-sibling',
'paginate' => 'yes',
'categories' => get_query_var('cat')
);