The MU forums have moved to WordPress.org

Get Post in a external file (3 posts)

  1. tanvir
    Member
    Posted 14 years ago #

    I'm using WPMU with another code-igniter application. WPMU installed in a sub-domain. In the template's side bar display the posts of a particular category. Now I want to display these posts in to the pages of code-igniter application.

    I tried to include the wp-blog-header & run wp functions but it gives me

    Warning: Cannot modify header information - headers already sent by (output started at /hermes/.../index.php:7) in /.../wpmu-settings.php on line 135

    Any Idea how I can get the posts in external files.

    Thanks in advance

    Tanvir

  2. SteveAtty
    Member
    Posted 14 years ago #

    Well first of all you've got a trailing blank line in one of your php files.

  3. tanvir
    Member
    Posted 14 years ago #

    thnx for reply.. I solved the problem..

    In case of of normal wordpress installation this method working but not working with subdomain installation of WPMU.

    To solve the issue i just create a new page template which show only the posts of that particular category. Then I use the page URL to display the posts.

    I think it's not a good solution bt it's working good.

    If u have any batter solution pls..

    Thanks
    Tanvir

About this Topic