Ah i see,
yeah, folders actually just uses a custom taxonomy for this exact reason.
The taxonomy name is:
folders4[POST_TYPE]
So for posts, the taxonomy would be:
folders4posts
Here is a snippet to pop into your theme:
$taxonomies = array(
'folders4posts',
'folders4pages'
);
$args = array(
'orderby' => 'name',
'order' => 'ASC',
'hide_empty' => true,
'exclude' => array(),
'exclude_tree' => array(),
'include' => array(),
'number' => '',
'fields' => 'all',
'slug' => '',
'parent' => '',
'hierarchical' => true,
'child_of' => 0,
'childless' => false,
'get' => '',
'name__like' => '',
'description__like' => '',
'pad_counts' => false,
'offset' => '',
'search' => '',
'cache_domain' => 'core'
);
$terms = get_terms($taxonomies, $args);
foreach ($terms as $key => $term) {
echo $term->name;
}
Some of that snippet is taken from the wordpress codex:
get_terms()
In a future version of folders, we will be adding shortcodes to do this.
I hope that helps.