Grabbing images from a WP blog published to Discourse

(Andy Crichton) #1

I have set the plugin up and all is great - when publishing a WP blog topic it grabs first few lines of text and sets a new topic in Discourse, email alerts going off, etc. Is there a setting for grabbing the first image as well as the opening lines of text?

(Adam Capriola) #2

This is the template I use:


*This is the companion discussion topic for this article.*

And then enable oneboxing for your site. That way you can get an excerpt with an image. To pick the image, you’ll probably want to set a Featured Image for the post in WordPress and use something like the WordPress SEO plugin to create Open Graph tags so the onebox will recognize it.