'.__('You don\'t have permission to access this page.', 'ap').'

'; } $action = get_post_type($post_id).'-'.$post_id; if(!isset($_REQUEST['ap_nonce']) || !wp_verify_nonce($_REQUEST['ap_nonce'], $action)){ echo '

'.__('Trying to cheat? huh!.', 'ap').'

'; } global $current_user; $post = get_post($post_id); $validate = ap_validate_form(); if(isset($validate['has_error']) && $validate['has_error']){ echo '
'. implode(', ', $validate['message']) .'
'; } $cats_t = get_the_terms( $post_id, 'question_category' ); if(isset($cats_t) && is_array($cats_t)){ foreach($cats_t as $c) $category = $c->term_id; } $tags_t = get_the_terms( $post_id, 'question_tags' ); $tags =''; if($tags_t){ foreach($tags_t as $t){ $tags .= $t->name.', '; } } ?>
post_content) ?>