check if secondary thumbnail exists
-
First, let me say this is a great plugin. But I have a few issues with the way I’m using it. I have 2 images wrapped in a div.
1. The “if (class_exists(‘MultiPostThumbnails’))” statements checks if the plugin is installed, but not if a specific page has a specific thumbnail. This causes the wrapper div to show up on all pages. Is there an option to test it similar to WP’s “if (has_post_thumbnail())”? Preferably checking by thumbnail ID.
2. Since it’s in a responsive theme, I want to remove width and height from the image. I tried applying the remove_thumbnail_dimensions function with no effect.
3. Is there a way to add a class to the image, which I can use as a CSS hook?
Thanks.
https://www.ads-software.com/plugins/multiple-post-thumbnails/
- The topic ‘check if secondary thumbnail exists’ is closed to new replies.