Wordpress if post or blog category statement -
got little problem here on wordpress.
i trying utilize php check whether page on category page or post page if isn't on either else nothing.
the code have is:
<?php if( (!is_category($category)) || (!is_single($post)) ) { ?> something... <?php } ?>
when seek without or category bit works fine. when bring together them code stops working.
i think you're trying test if it's not category and not post. alter status accordingly:
if( (!is_category($category)) && (!is_single($post)) ) {
wordpress post category
No comments:
Post a Comment