Title: Error in the code
Last modified: January 28, 2020

---

# Error in the code

 *  Resolved [jajok](https://wordpress.org/support/users/jajok/)
 * (@jajok)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/error-in-the-code-4/)
 * Hi. There is an error in your code. It causes a general error on the page and
   causes the ACF Recent Post Widget to not work properly. See the screenshots below.
   
   Config plugin: [](https://i0.wp.com/iqpro.pl/screenshot_2.png) [](https://i0.wp.com/iqpro.pl/screenshot_3.png)
 * Errors:
    [](https://i0.wp.com/iqpro.pl/screenshot_4.png)
 * Temporary code modification:
    [](https://i0.wp.com/iqpro.pl/screenshot_5.png)
 * Temporary code modification means transforming the variable into an array. But
   this is not a solution. Because the return value should be string, not array.
   The selection is single, so it should return a single string. Because it returns
   array, ACF RPW crashes. Link below. Could you improve texonomy term single choice?
 * ACF RPW error:
    [](https://i0.wp.com/iqpro.pl/screenshot_6.png)
 * Thanks and regards
    jarek
    -  This topic was modified 6 years, 4 months ago by [jajok](https://wordpress.org/support/users/jajok/).
    -  This topic was modified 6 years, 4 months ago by [jajok](https://wordpress.org/support/users/jajok/).

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

 *  Plugin Author [Konrad Chmielewski](https://wordpress.org/support/users/hwk-fr/)
 * (@hwk-fr)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/error-in-the-code-4/#post-12372772)
 * Hello!
 * Thanks for the report and the detailed description 🙂
    I’ll install ACF Recent
   Post Widget and check your solution.
 * I’ve added the bug in the Trello Board: [https://trello.com/b/QEgpU7CL/acf-extended](https://trello.com/b/QEgpU7CL/acf-extended)
 * I’ll let you know as soon as the patch is up!
 * Regards.
 *  Thread Starter [jajok](https://wordpress.org/support/users/jajok/)
 * (@jajok)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/error-in-the-code-4/#post-12372779)
 * thx 🙂
 *  Plugin Author [Konrad Chmielewski](https://wordpress.org/support/users/hwk-fr/)
 * (@hwk-fr)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/error-in-the-code-4/#post-12420636)
 * Hello,
 * Just to let you know that the latest 0.8.4.5 Update fixed this issue 🙂
 * Have a nice day!
 * Regards.

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

The topic ‘Error in the code’ is closed to new replies.

 * ![](https://ps.w.org/acf-extended/assets/icon-256x256.png?rev=2071550)
 * [Advanced Custom Fields: Extended](https://wordpress.org/plugins/acf-extended/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/acf-extended/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/acf-extended/)
 * [Active Topics](https://wordpress.org/support/plugin/acf-extended/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/acf-extended/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/acf-extended/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Konrad Chmielewski](https://wordpress.org/support/users/hwk-fr/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/error-in-the-code-4/#post-12420636)
 * Status: resolved