Forums

[closed] Can't Get Category ID in Footer (3 posts)

  1. kamoh
    Member
    Posted 1 year ago #

    I'm trying edit my template to display a different image depending on the category of the post, and though this is working fine in the header, I can't get it to work in the footer. I've figured out that this is being caused by something in the tabbed navigation code above it, but haven't been able to see what yet. I'd appreciate any help on this!

    The code I'm using to display different images in the footer depending on the category ID (and verified working in the header) is:

    &[Code moderated as per the Forum Rules. Please use the pastebin]

  2. alchymyth
    The Sweeper
    Posted 1 year ago #

    please use the code button or backticks to enclose code - it will keep it readable.

    try to add a 'wp_reset_query();' before your code in the footer.

  3. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Please stick to one topic at a time.

    http://wordpress.org/support/topic/417221?replies=3

Topic Closed

This topic has been closed to new replies.

About this Topic