How to disable Edit Post and Allow only Custom Field?

You can remove post type support for the editor on a conditional basis. The following should work: add_action( ‘add_meta_boxes’, ‘wpse45113_remove_editor’ ); function wpse45113_remove_editor() { // change the capability and post type to whatever is appropriate if ( ! current_user_can( ‘install_plugins’ ) ) remove_post_type_support( ‘post’, ‘editor’ ); } I’m using add_meta_boxes because it fires not too … Read more

Only show when content added via custom field

This is really more of a PHP question than a WordPress question. But, based on this example code: <li><a href=”http://<?php echo the_field(‘helpline_url’); ?>” class=”tiptip web” title=”<?php echo the_field(‘helpline_url’); ?>” target=”_blank”><?php echo the_field(‘helpline_url’); ?></a></li> …it appears that the the_field() function returns a value (since you then echo that returned value. Thus, simply wrap the entire <li> … Read more