Title: Bug Report: Array to string conversion in ere_do_shortcode function when shortco
Last modified: June 18, 2025

---

# Bug Report: Array to string conversion in ere_do_shortcode function when shortco

 *  [rapri](https://wordpress.org/support/users/rapri/)
 * (@rapri)
 * [11 months, 3 weeks ago](https://wordpress.org/support/topic/bug-report-array-to-string-conversion-in-ere_do_shortcode-function-when-shortco/)
 * Hello,
 * I found a bug when displaying the “Other Agents” block on an agent profile page.
 * **Error:**
   `Warning: Array to string conversion in ere-core-functions.php on 
   line 1717`
 * **How to reproduce:**
    1. Create an agent.
    2. View the agent’s profile.
    3. Scroll to “Other Agents” section.
 * **Problem:**
   The function `ere_do_shortcode` does not properly handle attributes
   that are arrays.
 * **Suggested fix:**
   Add an `is_array()` check and convert arrays to strings using`
   implode()`.
 * Thank you for your great plugin. Hope this helps improve it!
 * Regards,
   Rafael

The topic ‘Bug Report: Array to string conversion in ere_do_shortcode function when
shortco’ is closed to new replies.

 * ![](https://ps.w.org/essential-real-estate/assets/icon-128x128.png?rev=1603267)
 * [Essential Real Estate](https://wordpress.org/plugins/essential-real-estate/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/essential-real-estate/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/essential-real-estate/)
 * [Active Topics](https://wordpress.org/support/plugin/essential-real-estate/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/essential-real-estate/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/essential-real-estate/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [rapri](https://wordpress.org/support/users/rapri/)
 * Last activity: [11 months, 3 weeks ago](https://wordpress.org/support/topic/bug-report-array-to-string-conversion-in-ere_do_shortcode-function-when-shortco/)
 * Status: not resolved