Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jul 18th, 2011  |  syntax: PHP  |  size: 0.43 KB  |  views: 151  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. if (class_exists('MultiPostThumbnails')) {
  2.                         new MultiPostThumbnails(array(
  3.                         'label' => 'Secondary Image',
  4.                         'id' => 'second-image',
  5.                         'post_type' => 'project'
  6.                         ));
  7.                                
  8.                         new MultiPostThumbnails(array(
  9.                         'label' => 'Tertiary Image',
  10.                         'id' => 'third-image',
  11.                         'post_type' => 'project'                       
  12.                         ));
  13. }      
  14. add_image_size('project-second-image-thumbnail', 100, 100);
  15. add_image_size('project-third-image-thumbnail', 100, 100);