Go to \app\design\frontend\<your_vendor_name>/<your_theme_name>/Theme/templates/blog/blog.phtml

Note: I create a blog folder in template 

write the below code


<?php $objectManager = \Magento\Framework\App\ObjectManager::getInstance() ?>
<?php $posts = $objectManager->create(‘FishPig\WordPress\Model\ResourceModel\Post\Collection’)
->load(); ?>
<?php if (count($posts) > 0): ?>
<?php foreach($posts as $post): ?>

<a href=”<?php echo $post->getUrl() ?>”><?php echo $this->escapeHtml($post->getPostTitle()) ?></a>
<?php if ($image = $post->getFeaturedImage()): ?>
<a href=”<?php echo $post->getUrl() ?>”>
<img src=”<?php echo $image->getAvailableImage() ?>” src=”<?php echo $this->escapeHtml($post->getPostTitle()) ?>” />
<?php endif; ?>
<p><?php echo $post->getPostExcerpt(40) ?></p></li>
<?php endforeach; ?>
<?php endif; ?>


and call your template to the homepage

{{block class=”Magento\Framework\View\Element\Template” name=”myname” template=”Theme::blog/blog.phtml”}}



1: Download fishpig  magento2 extension

2: Install extension  in magento2

3: Download WordPress and install them in Magento root directory   you can use the same database or use a different database  my advise to use the different database

4: copy  wp theme from a  \app\code\FishPig\WordPress and change name into fishpig

5 and paste into word press theme  in wordpress\wp-content\themes/fishpig

6 Now open Magento admin  goto store->Configuration->wordpress->enable->yes->wordpress or your folder name  save


now open your URL/Blog