Title: Warning: array_filter() expects parameter 1 to be array, string given
Last modified: January 24, 2018

---

# Warning: array_filter() expects parameter 1 to be array, string given

 *  Resolved [swinggraphics](https://wordpress.org/support/users/swinggraphics/)
 * (@swinggraphics)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/warning-array_filter-expects-parameter-1-to-be-array-string-given/)
 * I have 40 copies of this error at the top of the site map—one for each page listed:
 * Warning: array_filter() expects parameter 1 to be array, string given in /wordpress/
   wp-content/themes/jjml/inc/template-tags.php on line 170
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwarning-array_filter-expects-parameter-1-to-be-array-string-given%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [David Gwyer](https://wordpress.org/support/users/dgwyer/)
 * (@dgwyer)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/warning-array_filter-expects-parameter-1-to-be-array-string-given/#post-9903067)
 * Can you post the contents of that file on pastebin and link to it please so I
   can take a look? Thanks.
 * [https://pastebin.com/](https://pastebin.com/)
 *  Thread Starter [swinggraphics](https://wordpress.org/support/users/swinggraphics/)
 * (@swinggraphics)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/warning-array_filter-expects-parameter-1-to-be-array-string-given/#post-9903645)
 * Sorry, turned out to be related to a different plugin, and errors just happened
   to show up only on the site map page.
 *  Plugin Author [David Gwyer](https://wordpress.org/support/users/dgwyer/)
 * (@dgwyer)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/warning-array_filter-expects-parameter-1-to-be-array-string-given/#post-9903938)
 * No problem.

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

The topic ‘Warning: array_filter() expects parameter 1 to be array, string given’
is closed to new replies.

 * ![](https://ps.w.org/simple-sitemap/assets/icon.svg?rev=1411764)
 * [Simple Sitemap - Create a Responsive HTML Sitemap](https://wordpress.org/plugins/simple-sitemap/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-sitemap/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-sitemap/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-sitemap/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-sitemap/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-sitemap/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [David Gwyer](https://wordpress.org/support/users/dgwyer/)
 * Last activity: [8 years, 4 months ago](https://wordpress.org/support/topic/warning-array_filter-expects-parameter-1-to-be-array-string-given/#post-9903938)
 * Status: resolved