Displaying Categorised Media items
-
Hi Folks,
I’ve added some code to my functions.php file to allow me to categorise my media library:
function wptp_add_categories_to_attachments() { register_taxonomy_for_object_type( 'category', 'attachment' ); } add_action( 'init' , 'wptp_add_categories_to_attachments' );
How do I display a lists of the items within a certain category within my theme – I’ve tried the standard method of listing posts but this doesn’t work.
Thanks Darren
- The topic ‘Displaying Categorised Media items’ is closed to new replies.