Include template based on tags in current post
-
I want to do a conditional template include based on tags in current post but cannot find anywhere in Codex on how I could do this.
IF post contains tag 'carrot' OR 'potato' OR 'bean' include template 'vegetables' ELSE IF post contains tag 'chicken' OR 'beef' OR 'pork' include template 'meat' ELSE IF post contains tag 'cod' OR 'salmon' OR 'tilapia' include template 'fish' ELSE include template 'default'Thank you!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Include template based on tags in current post’ is closed to new replies.