Support » Fixing WordPress » Question about $cat

  • As I understand it, $cat is set when a category page loads. Is that correct or no?

    To further my question–once $cat is set, does it stay set until another category page is loaded?

    If it stays set, is it possible to use an if statement in my sidebar to use the $cat value to show the other posts in the same category on a single post page (single.php)?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Question about $cat’ is closed to new replies.