WordPress.org

Ready to get started?Download WordPress

Forums

Question about $cat (3 posts)

  1. armstrong1118
    Member
    Posted 6 years ago #

    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)?

  2. armstrong1118
    Member
    Posted 6 years ago #

    anyone?

  3. armstrong1118
    Member
    Posted 6 years ago #

    Is this really a difficult question?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.