Title: Error in shortcode
Last modified: November 5, 2022

---

# Error in shortcode

 *  Resolved [webcode01](https://wordpress.org/support/users/webcode01/)
 * (@webcode01)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/error-in-shortcode-4/)
 * i am getting this error:
    Warning: Array to string conversion in C:\xampp\htdocs\
   wordpressapi\wp-includes\shortcodes.php on line 355
 * and the page only shows “Array”
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-in-shortcode-4%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [WPGetAPI](https://wordpress.org/support/users/wpgetapi/)
 * (@wpgetapi)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/error-in-shortcode-4/#post-16175084)
 * Hi,
 * This is because shortcodes can not output PHP array data when the Results Format
   is set to PHP array data.
 * Here is some information on this here – [https://wpgetapi.com/docs/format-api-data-as-html/](https://wpgetapi.com/docs/format-api-data-as-html/)

Viewing 1 replies (of 1 total)

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

 * ![](https://ps.w.org/wpgetapi/assets/icon-256x256.jpg?rev=2848998)
 * [WPGet API - Connect to any external REST API](https://wordpress.org/plugins/wpgetapi/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpgetapi/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpgetapi/)
 * [Active Topics](https://wordpress.org/support/plugin/wpgetapi/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpgetapi/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpgetapi/reviews/)

## Tags

 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)
 * [warning](https://wordpress.org/support/topic-tag/warning/)

 * 1 reply
 * 2 participants
 * Last reply from: [WPGetAPI](https://wordpress.org/support/users/wpgetapi/)
 * Last activity: [3 years, 7 months ago](https://wordpress.org/support/topic/error-in-shortcode-4/#post-16175084)
 * Status: resolved