• Resolved tommyqr

    (@tommyqr)


    I am using Display Posts Shortcode to display post-type=”Attachment”. I can’t get image in the attachment to display.

    My shortcode is
    [display-posts post_type=”attachment” post_status=”inherit” image_size=”thumbnail” include_title=”true” include_excerpt=”true” ]

    I know attachment image is not a “featured image” and this is what the Plugin is looking for. How do I handle this?

    Thank You,
    Tommy

Viewing 1 replies (of 1 total)
  • Plugin Author Bill Erickson

    (@billerickson)

    I’m sorry but this plugin does not support displaying the image for attachments.

    You could use the output filter to customize the featured image if 'attachment' === get_post_type().

    Instead of using get_the_post_thumbnail(), use wp_get_attachment_image().

    I hope that helps. If you need additional help implementing this functionality, I recommend you post it as a micro-project on Codeable

Viewing 1 replies (of 1 total)
  • The topic ‘Post Type Attachment How To Display Image’ is closed to new replies.