Home Forums Feedback ACF makes a good combo with Live-Edit Reply To: ACF makes a good combo with Live-Edit

  •     function init()
            // must be logged in
    if( is_user_logged_in() && current_user_can('author') || current_user_can('administrator'))
                // actions
                add_action('admin_head', array($this,'admin_head'));
                add_action('admin_menu', array($this,'admin_menu'));
                add_action('wp_enqueue_scripts', array($this,'wp_enqueue_scripts'));
                add_action('wp_head', array($this,'wp_head'));
                add_action('wp_footer', array($this,'wp_footer'));
                add_action('wp_ajax_live_edit_update_width', array($this, 'ajax_update_width'));

    I tried this code intending to allow authors and admins to edit. But again, the authors have access to all the posts which are not their own.

    So better if you could help me making the plugin work as per the WordPress’s native post access capability. I can also do myself if you guide me through.