I am looking to show a list of categories from all my entries using the code below: It is an MSM install - where the site name is “blue”. I can’t get the category names to show up when I list all the channel names. However they show up if I list only one channel name - like “type-entry”
ps: The channel names are unique across all the MSM sites.
{exp:channel:categories
channel="type-entry|type-link|type-photo|type-quote|type-video"
site="blue"
status="open"
show_empty="no"
style="linear"
}
<a href="http://{path=journal}class=catname">{category_name}</a>
<span class="catcount">
{exp:query sql="SELECT count(exp_category_posts.entry_id) AS post_count FROM exp_category_posts WHERE exp_category_posts.cat_id = {category_id} "}
{post_count} Entries
{/exp:query}
</span>
{/exp:channel:categories}