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') ->addPostTypeFilter('post') ->setOrderByPostDate() ->addIsViewableFilter() ->setPageSize(5) ->load(); ?> <?php if (count($posts) > 0): ?> <ul> <?php foreach($posts as $post): ?> <li> <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()) ?>" /> </a> <?php endif; ?> <p><?php echo $post->getPostExcerpt(40) ?></p></li> <?php endforeach; ?> </ul> <?php endif; ?>
and call your template to the homepage
{{block class="Magento\Framework\View\Element\Template" name="myname" template="Theme::blog/blog.phtml"}}