Dynamically switch between “review” or “comment”
-
Hello,
In my templates I want the comment field to be called “Review” when the post is in the “book” category. Unfortunately, I have never worked with php. Would something like this work:
<?php in_category(2) ? echo “Review” : echo “Comment” ?>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Dynamically switch between “review” or “comment”’ is closed to new replies.