Forums

Pulled in 1 post from Cat X into header, but showing in body too (oops) :) (3 posts)

  1. AardvarkGirl
    Member
    Posted 10 months ago #

    I was being clever, did an if/else in the header to load a different header graphic and div box on the home page, and in the div box pull in the last post from cat X. And it all works, except I am getting that 1 post from cat X down in the body where the static page text ought to be.

    Oops. A little learning is a dangours thing. :) What'd I do wrong?
    http://ratest8.com/

    [code moderated per forum rules - please follow http://codex.wordpress.org/Forum_Welcome#Posting_Code when posting code]

  2. AardvarkGirl
    Member
    Posted 10 months ago #

    Well, I found a work around. Made a custom template that just calls the page data vs letting it run the loop. :)

  3. alchymyth
    The Sweeper
    Posted 10 months ago #

    have you tried to use wp_reset_query(); after the first custom loop:

    http://codex.wordpress.org/Function_Reference/wp_reset_query

Reply

You must log in to post.

About this Topic