How Do I Embed a Medium Blog in WordPress?

Beginning with WordPress 3.4, you can embed a Medium blog by including the following code in your theme’s header.php file:

Once you have included this code, all you need to do is add a link to the blog in your WordPress posts and pages. To embed the blog on a post or page, simply add the following line of code:

Embed this post

If you want to embed the blog on an entire site, you will need to add the following line of code to your theme’s functions.php file:

add_action( ‘wp_head’, ’embed_medium_blog’, 10 );.

Related Posts