Title: Code Error
Last modified: April 8, 2018

---

# Code Error

 *  Resolved [canterburyboho](https://wordpress.org/support/users/canterburyboho/)
 * (@canterburyboho)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/code-error-16/)
 * This error shows in the backend when I attempt to use the multi-date picker with
   a custom post type.
 * /var/www/html/wp-content/plugins/acf-multi-dates-picker/fields/class-pdg-acf-
   field-multi-dates-picker-v4.php on line 294

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [gossterrible](https://wordpress.org/support/users/gossterrible/)
 * (@gossterrible)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/code-error-16/#post-10182914)
 * Hi i had the same issue and i solved it by modifying the plugin code.
    If you
   have any experience got to line 294 and edit the following
 *     ```
       	function format_value( $value, $post_id, $field )
       	{
       		$value = (array) json_decode($value,true);
       		$value = implode(',', $value);
       		return $value;
       	}
       ```
   
 * Hope it helps.
 *  Plugin Author [devnanguo](https://wordpress.org/support/users/devnanguo/)
 * (@devnanguo)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/code-error-16/#post-10297009)
 * Thank you ! I fixed the bug.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Code Error’ is closed to new replies.

 * ![](https://ps.w.org/acf-multi-dates-picker/assets/icon-128x128.png?rev=1787548)
 * [ACF Multi Dates Field](https://wordpress.org/plugins/acf-multi-dates-picker/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/acf-multi-dates-picker/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/acf-multi-dates-picker/)
 * [Active Topics](https://wordpress.org/support/plugin/acf-multi-dates-picker/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/acf-multi-dates-picker/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/acf-multi-dates-picker/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [devnanguo](https://wordpress.org/support/users/devnanguo/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/code-error-16/#post-10297009)
 * Status: resolved