listing attachment_category
-
Hi, I’m trying to list all of the attachment_category items in a list
I was hoping to do the same kind of scrutinising that WordPress offers in its category sorting and modifying query.<?php $categories = get_attachment_category(); foreach ($categories as $category) { echo $category->name; } ?>
I want to be able to list attachment children to eventually to be used in a dropdown menu such as
<option value='<?php echo $page->parent_name; ?>'><?php echo $page->category_name; ?></option>
I might be making too much work for myself, now others, but I’m hoping someone can help me list those attachment categories first. 🙂
http://wordpress.org/extend/plugins/media-library-assistant/
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘listing attachment_category’ is closed to new replies.