WordPress.org

Support

Support » How-To and Troubleshooting » conditional tag for single posts within a taxonomy

conditional tag for single posts within a taxonomy

  • josephina1988
    Member

    @josephina1988

    Is there a conditional tag that will connect posts within a custom taxonomy? For example, if I created a taxonomy for “Animals” (with groups like; dogs, cats, birds, etc.) how do I refer to posts within the dogs grouping?

    is_single() is for posts … can I custom build something in functions.php taht will basically say ” in_tax(‘Animals’) ” ….?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘conditional tag for single posts within a taxonomy’ is closed to new replies.