Title: Array to String Conversion &#8211; Custom Sidebars when Post Type Archive Loop Empty
Last modified: June 9, 2022

---

# Array to String Conversion – Custom Sidebars when Post Type Archive Loop Empty

 *  Resolved [JP3](https://wordpress.org/support/users/jp3/)
 * (@jp3)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/array-to-string-conversion-custom-sidebars-when-post-type-archive-loop-empty/)
 * > On line: 213
   >  In file: /path/to/wp-content/plugins/custom-sidebars/inc/class-
   > custom-sidebars-replacer.php Array to string conversion
 * As far as I can tell, it only happens on custom post type archives with zero 
   results.
 * When I get the error, the default sidebar shows instead of the assigned custom
   sidebar. If the archive has results (not empty), the custom sidebar shows properly.
 * Should be a pretty simple fix.
    -  This topic was modified 3 years, 11 months ago by [JP3](https://wordpress.org/support/users/jp3/).
      Reason: added tags

Viewing 1 replies (of 1 total)

 *  Plugin Author [WebFactory](https://wordpress.org/support/users/webfactory/)
 * (@webfactory)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/array-to-string-conversion-custom-sidebars-when-post-type-archive-loop-empty/#post-15725623)
 * Hi,
    Thank you for reporting. Noted 👍 We’ll get it fixed.

Viewing 1 replies (of 1 total)

The topic ‘Array to String Conversion – Custom Sidebars when Post Type Archive Loop
Empty’ is closed to new replies.

 * ![](https://ps.w.org/custom-sidebars/assets/icon-256x256.png?rev=1414065)
 * [Custom Sidebars - Dynamic Sidebar Classic Widget Area Manager](https://wordpress.org/plugins/custom-sidebars/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-sidebars/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-sidebars/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-sidebars/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-sidebars/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-sidebars/reviews/)

## Tags

 * [Array to String Conversion](https://wordpress.org/support/topic-tag/array-to-string-conversion/)

 * 1 reply
 * 2 participants
 * Last reply from: [WebFactory](https://wordpress.org/support/users/webfactory/)
 * Last activity: [3 years, 11 months ago](https://wordpress.org/support/topic/array-to-string-conversion-custom-sidebars-when-post-type-archive-loop-empty/#post-15725623)
 * Status: resolved