WordPress.org

Support

Support » Plugins and Hacks » Posts in Page » [Resolved] [Plugin: Posts in Page] Include images in posts shown?

[Resolved] [Plugin: Posts in Page] Include images in posts shown?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Eric Amundson

    @sewmyheadon

    Volunteer Moderator

    Howdy meadwench,

    Since this plugin is usingthe_excerpt by default, it won’t show images because the_excerpt strips formatting and images per the documentation:

    http://codex.wordpress.org/Function_Reference/the_excerpt

    I suppose you could modify the template file to use the_content instead along with some code to tailor exactly what is shown, but that could change presentation of content on the whole site and could become frustrating, depending on how ninja your PHP skills are.

    A better way to go would be to modify the template file to pull in the post’s Featured Image (aka. Post Thumbnail):

    http://codex.wordpress.org/Post_Thumbnails

    Hope that helps,
    Eric

    Plugin Author Eric Amundson

    @sewmyheadon

    Volunteer Moderator

    Hey meadwench,

    Daniel and I discussed it and it could be that you could use the_content along with the more tag, but that would require you inserting a more tag in each post after the content and image you’d want to display.

    I think the easier, softer way is to go with Featured Image.

    Cheers,
    Eric

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] [Plugin: Posts in Page] Include images in posts shown?’ is closed to new replies.
Skip to toolbar