WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] How-to request posts on a single php file

[Resolved] How-to request posts on a single php file

  • 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 )

    //repeat.

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

    Thanks for your excelent advice! It helped me alot 😀

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] How-to request posts on a single php file’ is closed to new replies.
Skip to toolbar