3

Could somebody please tell me how to write

<?php if (in_category( array(10,11,12,13,14,15,18,19,20) )) { ?> 

and if its not frontpage ?

1

1 Answer 1

9

You have the WordPress function is_front_page() that you need to invert with "!" .

if(!is_front_page() && in_category( array(10,11,12,13,14,15,18,19,20) ))
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.