Meta Data on Media
-
I am trying to connect a custom post type to my media as to give my photographers and subjects of photos credit. The admin boxes are showing up just fine, however when I save, the data that I put into the additional fields appears to be lost. Here is my register function:
p2p_register_connection_type( array( 'name' => 'attachments_to_people', 'from' => 'attachment', 'to' => 'person', 'admin_box' => array( 'show' => 'from', 'context' => 'advanced' ), 'sortable' => 'from', 'fields' => array( 'role' => array( 'title' => 'Role', 'type' => 'text' ), 'weight' => array( 'title' => 'Weight (0-99)', 'type' => 'text', ) ) ) );The ‘role’ could be ‘photographer’,’subject’ or something describing who they are in the image ‘clown’, ‘cowboy’, whatever.
Thank you for your help!
The topic ‘Meta Data on Media’ is closed to new replies.