zehrila Posted July 11, 2010 Share Posted July 11, 2010 Hello As the title says, how one can add wordpress posts into their main site index. For example, if your website's main index is on a different CMS than wordpress and you host a wordpress blog at a subdomain/folder level and also want the new posts to be shown at front page of your main index, which is not wordpress, what would you do? Any help shall be appreciated. Thanks Link to comment https://forums.phpfreaks.com/topic/207418-displaying-wordpress-blog-posts-in-your-main-index/ Share on other sites More sharing options...
themistral Posted July 12, 2010 Share Posted July 12, 2010 If there's no easy hook then I would query the database holding the Wordpress posts and use a limit clause in the sql to only show the first 5 (or however many you want) posts. You can then style the posts to fit in with your index page. Link to comment https://forums.phpfreaks.com/topic/207418-displaying-wordpress-blog-posts-in-your-main-index/#findComment-1084770 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.