Conditional Statement for Post Form
-
Hi
Trying to have a conditional statement in Prologue theme that shows a different form if a user is not a member (or not logged in). This is my attempt but it’s not working:
<?php if( current_user_can( 'publish_posts' ) ) require_once dirname( __FILE__ ) . '/post-form.php'; } else { if( current_user_can( 'level_0' ) ) require_once dirname( __FILE__ ) . '/banner-form.php'; ?>
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Conditional Statement for Post Form’ is closed to new replies.