Skip to:
Content
Pages
Categories
Search
Top
Bottom

Including loop in ajax pages

  • @sgrunt

    Participant

    hi guys, here is a question, not strictly BP related.

    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..

    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’);

Viewing 2 replies - 1 through 2 (of 2 total)
  • @sgrunt

    Participant

    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…

    @sgrunt

    Participant

    solved, i close this

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Including loop in ajax pages’ is closed to new replies.
Skip to toolbar