This view is essentially creating a custom gallery view of Mediapress galleries (so that I can filter by gallery category, something that's not included in Mediapress). I'm using a content template ("mpp-gallery-thumbnail") to load the thumbnail of the gallery's cover image, specified by the post ID, which is contained in the Mediapress custom field "_mpp_cover_id."
If the body of the content template just contains a basic featured image shortcode ([wpv-post-featured-image]), then I get the result in the first screenshot. If I instead use [wpv-post-featured-image size='custom' width='320' height='320' crop='true' crop_horizontal='center' crop_vertical='top'] I get the second screenshot—the default thumbnail, and below that, the custom thumbnail. I only want the custom one. The last screenshot is what Firebug displays for the first item in the loop when I use the custom image shortcode.
Thank you for contacting Toolset support. As I can see this custom field "_mpp_cover_id” is from a 3rd party plugin and when you use it in the View loop along with Views shortcode:
- It shows the images twice. Can you please tell why it is necessary to use custom field "_mpp_cover_id” ? Because the featured image returns without this.
Please provide temporary access (WP-Admin and FTP Login info) to your site (preferably staging site), so that I can look into your setup and check the issue.
Your next answer will be private which means only you and I have access to it.
=== Please backup your database and website ===
✙ I would additionally need your permission to de-activate and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important.
✙ Please provide View’s Edit link, Page / post link, and custom field link from where this is generated _mpp_cover_id.
I have removed this id="[wpv-post-field name='_mpp_cover_id']" from View loop and placed in Content template (see attached screenshot), now featured images are displaying only once with defined cropped size.