php if in wordpress
-
Hi.
I need to make a php if command (at least I think so), which first checks if the post in is a certain category. I guess in_category(); would do this.
Then, if that’s true, it should check if the browser is IE7 or older, and if it is, print some text. I found a solution for that already:
<!–[if lte IE 7]>
<div>
Displayed in IE 7 and lesser version of IE on IE 6 , IE 5 etc.
</div>
<![endif]–>How do I connect these to, or is it possible? I’m really new to php.
Thanks for your answer.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘php if in wordpress’ is closed to new replies.