Title: Error With &#8220;Exclude posts already displayed&#8221; Code
Last modified: April 16, 2020

---

# Error With “Exclude posts already displayed” Code

 *  Resolved [bward](https://wordpress.org/support/users/bward/)
 * (@bward)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/error-with-exclude-posts-already-displayed-code/)
 * I noticed our error log was filling up. I see this error pointing to our functions
   file.
 * > PHP Warning: array_merge(): Argument #2 is not an array in /wp-content/themes/
   > hemingway-child/functions.php on line 1013
 * On that line we have the “[Exclude posts already displayed](https://displayposts.com/2019/01/03/exclude-posts-already-displayed/)”
   code. The code works fine on our page, but I would like to know what we can do
   to clear up the error.
 * Thank so much!

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

 *  Plugin Author [Bill Erickson](https://wordpress.org/support/users/billerickson/)
 * (@billerickson)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/error-with-exclude-posts-already-displayed-code/#post-12689826)
 * I just updated the code snippet in that post. Can you update and see if that 
   resolves the issue?
 *  Thread Starter [bward](https://wordpress.org/support/users/bward/)
 * (@bward)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/error-with-exclude-posts-already-displayed-code/#post-12691277)
 * Great job Bill. No errors after 30 minutes with the new code. It was popping 
   every minute or so. Have a blessed day sir.

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

The topic ‘Error With “Exclude posts already displayed” Code’ is closed to new replies.

 * ![](https://ps.w.org/display-posts-shortcode/assets/icon-256x256.jpg?rev=2940963)
 * [Display Posts - Easy lists, grids, navigation, and more](https://wordpress.org/plugins/display-posts-shortcode/)
 * [Support Threads](https://wordpress.org/support/plugin/display-posts-shortcode/)
 * [Active Topics](https://wordpress.org/support/plugin/display-posts-shortcode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/display-posts-shortcode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/display-posts-shortcode/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [bward](https://wordpress.org/support/users/bward/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/error-with-exclude-posts-already-displayed-code/#post-12691277)
 * Status: resolved