Results 1 to 6 of 6
Thread: Multiple IF OR statement
Feb 18, 2013, 08:16 #1
- Join Date
- Feb 2013
- 0 Post(s)
- 0 Thread(s)
Multiple IF OR statement
I have about 12 custom post types in wordpress and i am looking for an IF statement that is efficient and speedy.
Basically, if the user is on a single post of 5 specific custom post types i would like to echo a specific blurb of text.
The code should go on single.php I guess and it should be something like:
IF post_type = os_red OR post_type = os_blue OR post_type = green etc.. then echo... END IF
many thanks in advance,