Support

Account

Home Forums Front-end Issues Update field acf form post_id with user_id

Unread

Update field acf form post_id with user_id

  • I created a field with radio button in the post visible in the front end with acf_form
    I wish every subscriber can use this field to select one of the following options with radio button: “Read”, “Unread”, “Important”.
    I wish every subscriber can select posts and update status.
    Example:
    – subscriber_1 update post_519 with radio button: “Read”
    – subscriber_2 update post_519 with radio button: “important”.
    So every time subscriber_1 finds post_519 he knows this has been read.
    This is the code:

    
    global $current_user;
    $current_user =  wp_get_current_user();	
    $args = array(
    'post_id' => 'user_'.$current_user->ID,
    'field_groups' => array( 1253 ),
    );
    	
    acf_form( $args );
    

    Now I have a problem: when the subscriber updates post_519 all subscriber_1 posts are marked as “Read”.
    While I would like each post to have its status “read”, “unread”, “select status”.

Viewing 1 post (of 1 total)

The topic ‘Update field acf form post_id with user_id’ is closed to new replies.