1
votes

I want to show the wordpress posts on the magento2 page . SO I have enabled the fishpig wordpress integration extension .

And call/added the block code in the magento page content. {{block class="FishPig\WordPress\Block\Post\ListPost" name="wp.post.list" template="post/list.phtml"}}

So it gives the setConnection() exception errors

Points : I have used the different databases for word press and magneto.

How to integrate fish pig code get the posts from the word press database ?

Is i need to add the word press database in the any magneto 2 file ?

Please help me how to possible that ?

enter image description here

How Can i show the post detail page on click READ More button of the posts on the magento site ?

Now it is redirect to wordpress site (post detail page ) .

My Site installation directory is /news .

Site URL is : www.example.com/news

Home URL is : www.example.com/latest-news

Magento wordpress configuration showing this error

Your home URL (https://www.example.com/latest-news) is invalid. This URL (www.example.com/latest-news) showing the list of posts but issue is post detail page redirect to 404 page .

1
In figpig module. it gives you configuration setting to connect database. make sure your wordpress database connection is proper.Amitkumar solanki

1 Answers

0
votes

You need to upgrade the extension to the latest version as this bug has now been fixed.