How to set is_page or is_category dozens at a time?? like 1-10, 20-30, etc.
-
My goal is to set a code something like this
if, is_page(‘1-10’) then echo x.
how can I tell it to do like 1 THRU 10, instead of having to type is_page(‘1,2,3,4,5,6,7,8,9,10’)This would save me a ton of time. Thank you.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How to set is_page or is_category dozens at a time?? like 1-10, 20-30, etc.’ is closed to new replies.