Embed Single Post

TheHub gives you the ability to show individual posts on your website, which are dynamically linked to TheHub itself, keeping things such as number of replies, likes & shares up to date.

How do I get this on my website?

It's simple. All you need to do is add this line of code anywhere you want the post to be shown:

<thehub:embed href="https://thehub.scot/@Murchie/timeline/1"></thehub:embed>
<script async src="//thehub.scot/share/embed.js" charset="utf-8"></script>

Where "href" is the link to the post on The Hub. This would display like so:

By default, the width is set to 525px, and can be changed by adding a width attribute:

<thehub:embed href="https://thehub.scot/@Murchie/timeline/1" width="300px" ></thehub:embed>
<script async src="//thehub.scot/share/embed.js" charset="utf-8"></script>

You can quickly get this code on any post on The Hub by clicking the options arrow on the top right of a post, selecting "Share Post" and clicking on the embed "<>" icon to copy the code to your clipboard. Then simply paste onto your webpage to display it.