Skip to main content
added 40 characters in body
Source Link
tobeeornot
  • 27
  • 3
  • 10
'// Add secondary thumbnail (featured image) in posts */
if (class_exists('MultiPostThumbnails')) {  
new MultiPostThumbnails(array
  ( 'label'
        'label' =>
  'Secondary Image', 
        'id' => 'secondary-image', 
        'post_type' => 'post'
  ) 
);
new add_image_sizeMultiPostThumbnails('post-secondary-image-thumbnail',array(
 176       'label' => 'Tertiary Image', 
 58       'id' => 'tertiary-image', true);
 );
new MultiPostThumbnails(array(
        'label' => 'Tertiary'Quaternary Image',
        'id' => 'tertiary'quaternary-image',
  ) 
);
}
add_image_size('post-tertiarysecondary-image-thumbnail', 176, 58, true);
 
new MultiPostThumbnails(arrayadd_image_size(
'label' => 'Quaternary Image''post-tertiary-image-thumbnail',
'id' =>176, 'quaternary-image'58,
) true);
add_image_size('post-quaternary-image-thumbnail', 176, 58, true);
};'   
// Add secondary thumbnail (featured image) in posts */
if (class_exists('MultiPostThumbnails')) { new MultiPostThumbnails(array
 ( 'label'  =>
 'Secondary Image', 'id' => 'secondary-image', 'post_type' => 'post'
 ));
 add_image_size('post-secondary-image-thumbnail', 176, 58, true);

new MultiPostThumbnails(array(
'label' => 'Tertiary Image',
'id' => 'tertiary-image',
 ));
add_image_size('post-tertiary-image-thumbnail', 176, 58, true);
 
new MultiPostThumbnails(array(
'label' => 'Quaternary Image',
'id' => 'quaternary-image',
));
add_image_size('post-quaternary-image-thumbnail', 176, 58, true);
}
'// Add secondary thumbnail (featured image) in posts */
if (class_exists('MultiPostThumbnails')) {  
new MultiPostThumbnails(array ( 
        'label' => 'Secondary Image', 
        'id' => 'secondary-image', 
        'post_type' => 'post' ) 
);
new MultiPostThumbnails(array(
        'label' => 'Tertiary Image', 
        'id' => 'tertiary-image', )
 );
new MultiPostThumbnails(array(
        'label' => 'Quaternary Image',
        'id' => 'quaternary-image', ) 
);
}
add_image_size('post-secondary-image-thumbnail', 176, 58, true);
add_image_size('post-tertiary-image-thumbnail', 176, 58, true);
add_image_size('post-quaternary-image-thumbnail', 176, 58, true);'   
edited title
Link
tobeeornot
  • 27
  • 3
  • 10

Multiple Post Thumbnails Plugin - Need help with code

deleted 65 characters in body
Source Link
tobeeornot
  • 27
  • 3
  • 10

I am having problems getting this plugin to run but have had little success getting it to work, even after reading past entries.

  I have activated the plugin and placedwould be grateful if you could see if the following code into theis right.

Code in functions template to register multiple images.php:

I have then used the following codeCode in the relevant template (I have posted the whole template code as I think you will need to see it in full):

I am having problems getting this plugin to run but have had little success getting it to work, even after reading past entries.

  I have activated the plugin and placed the following code into the functions template to register multiple images:

I have then used the following code in the relevant template (I have posted the whole template code as I think you will need to see it in full):

I am having problems getting this plugin to run but have had little success getting it to work, even after reading past entries. I would be grateful if you could see if the code is right.

Code in functions.php:

Code in the relevant template (I have posted the whole template code as I think you will need to see it in full):

Source Link
tobeeornot
  • 27
  • 3
  • 10
Loading