I'm using smart archive plugin to display post from a specific category and subcategories
I just want to group post by subcategories.
I'm using fancy template
[[LINK href="http://wordpress.org/plugins/smart-archives-reloaded/"]]http://wordpress.org/plugins/smart-archives-reloaded/[[/LINK]]
the template tag i'm using
<div class="les-news-marta">
<?php
$sar_args = array(
'format' => 'fancy',
);
$query_args = array(
'cat' => 34, 'orderby' => 'date', 'order' => 'DESC'
);
smart_archives( $sar_args, $query_args );
?>
<div class="clear"></div>
</div>
please see added images
Bob answers:
are you setting one post to multiple categories?
Bob comments:
are you setting multiple categories to one post?
Bob comments:
here you go.
I have modified actual plugin so this work as you expected.
replace your old plugin with this new one.
[[LINK href="http://wp-lovers.com/wpquestions/smart-archives-reloaded.zip"]]http://wp-lovers.com/wpquestions/smart-archives-reloaded.zip[[/LINK]]
let me know if you have any trouble.
Bob comments:
I have tested above plugin in my local with shortcode instead of template tag.
zounars comments:
I have test it and the categories titles are showing but all the posts of the site are also showing.
it's not filtering by 'cat' => 34
can you give me your shortcode. I try this and get nothing [smart_archives format=fancy cat=34]