[resolved] How-to request posts on a single php file (3 posts)

  1. kurodesu
    Posted 8 years ago #

    Well I'm wondering if there's a way to request wordpress posts on another phpfile ( external ), so I can display them with ajax include tabs on my main page.

    for example

    Post Title 1
    Content .....
    ( read more )


  2. Adam Brown
    Posted 8 years ago #

    RSS feeds are great for this sort of thing. Google "magpie rss" for a PHP library that will grab and cache the feed. Since your blog's feed gets cached for an hour by magpie, this keeps your external php file quick.

    If you're looking for greater flexibility (and if you have more PHP experience), there's another way: include() your blog's wp-blog-header.php, then construct a custom query and loop.

  3. kurodesu
    Posted 8 years ago #

    Thanks for your excelent advice! It helped me alot :D

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.