The MU forums have moved to WordPress.org

Including loop in ajax pages (2 posts)

  1. sgrunt
    Member
    Posted 14 years ago #

    I want to integrate ajax tabs in my theme layout. And so when i press the various tabs, i want to recall pages that contain loops: for example a loop for the category "music" posts, one for the "movie" posts etc..

    All the pages are in the theme root.

    if i include my loop pages without ajax, they work fine.
    if i recall them using ajax i have the Call to undefined function query_posts() errors

    I think including the wp blog header it should fix this, but i'm trying without success. Can you tell me if this could be the problem, and the right sintax?

    i've tried setting this at the first line of the page: include('wp_blog_header.php');

    i've tried to put at the top of the page the get_header code, but it is considered a call to undefined function too...

  2. sgrunt
    Member
    Posted 14 years ago #

    oki solved!

About this Topic