php - Fetch all of wordpress (less header/footer) into magento. I can only get the posts

Solution:
You need to iclude thewp-blog-header.php
to your magento template.
If you add the following line at the top of your magento template, you will have access to all WP commands:
require_once($_SERVER['DOCUMENT_ROOT'].'/wp-blog-header.php');
(make sure you use the right path)
Now you just ned to create a loop and display the post. You may also get posts from a specific category if you wish.
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: unable to determine current zabbix database version: the table "dbversion" was not found.
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.