'; $new_columns['title'] = _x('Comic Title Name', 'column name'); $new_columns['chapter'] = __('Chapter','easel'); $new_columns['characters'] = __('Characters','easel'); $new_columns['locations'] = __('Location','easel'); $new_columns['tags'] = __('Tags', 'easel'); $new_columns['date'] = _x('Date', 'column name'); $new_columns['comicimages'] = _x('Comic', 'column name'); return $new_columns; } add_action('manage_posts_custom_column', 'ceo_manage_comic_columns', 10, 2); function ceo_manage_comic_columns($column_name, $id) { global $wpdb; switch ($column_name) { case 'chapter': $allterms = get_the_terms( $id, 'chapters'); if (!empty($allterms) && !isset($allterms->errors)) { foreach ($allterms as $term) { $term_list_chapters[] = ''.$term->name.''; } echo join(', ', $term_list_chapters ); } break; case 'characters': $allterms = get_the_terms( $id, 'characters'); if (!empty($allterms) && !isset($allterms->errors)) { foreach ($allterms as $term) { $term_list_characters[] = ''.$term->name.''; } echo join(', ', $term_list_characters ); } break; case 'locations': $allterms = get_the_terms( $id, 'locations'); if (!empty($allterms) && !isset($allterms->errors)) { foreach ($allterms as $term) { $term_list_locations[] = ''.$term->name.''; } echo join(', ', $term_list_locations ); } break; case 'comicimages': $post = &get_post($id); $comicthumb = ceo_display_comic_thumbnail('small', $post, false, 100); if (!$comicthumb) { echo 'No Comic Found.'; } else { echo $comicthumb; } break; default: break; } // end switch } function ceo_edit_comic_in_post($post) { ?>

Meta Box Inside a Post TODO
  1. When file is uploaded via this script create the 2 thumbnails necessary using the ceo_pluginfo paths that are set
  2. Update the 'comic' custom metafield with the filename (not full location, just filename)
  3. Check if comic custom field exists, if so, display comic thumbnail that appears
  4. If custom field does not exist, check if comic exists via date
  5. If not by date or custom field then display no comic exists

Display Current Comic Thumbnail(s) that is set in this area. Basically do a loop through the meta fields for 'comic' and display each thumbnail here of all that are attached.
Display 'selection' box where you can reselect a different comic that is already available here instead of uploading.
This also needs to be ajaxified where when clicking the select button it will update the custom post meta field with the appropriate filename for the comic.
If multiple comics selected it will create a new comic field for all of them.
Alt Text (Hover) - This is text that is displayed when the mouse is over the comic.