WordPress.org

Ready to get started?Download WordPress

Forums

Advanced Custom Fields
Enable advanced custom fields for all users (3 posts)

  1. ParadiseCircus
    Member
    Posted 1 year ago #

    should't be allowed to see my acf metaboxes on a custom type as a custom user? or is it set by default to only display for admins? , i'm using adminimize and members plugins and I tried by turning em off on my wordpress but no result

    http://wordpress.org/extend/plugins/advanced-custom-fields/

  2. elliotcondon
    Member
    Plugin Author

    Posted 1 year ago #

    Hi ParadiseCircus,

    field groups will be visible for all users unless you specify differently in the field group location rules

  3. ParadiseCircus
    Member
    Posted 1 year ago #

    Hey elliot,

    yea I manage to figure out what was causing my problem, I set a custom function to only display "own" posts for user when they wanted to edit them, here's my function...

    function posts_for_current_author($query) {
    		global $user_level;
    
    		if($query->is_admin && $user_level < 5) {
    			global $user_ID;
    			$query->set('author',  $user_ID);
    			unset($user_ID);
    		}
    		unset($user_level);
    
    		return $query;
    	}
    	add_filter('pre_get_posts', 'posts_for_current_author');

    I'm trying to figure out why this function is causing this problem...

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic