Title: Array function errors
Last modified: August 21, 2016

---

# Array function errors

 *  [rhetters](https://wordpress.org/support/users/rhetters/)
 * (@rhetters)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/array-function-errors/)
 * I’m getting these messages:
 * **Warning**: array_merge() [[function.array-merge](https://wordpress.org/support/topic/array-function-errors/function.array-merge?output_format=md)]:
   Argument #2 is not an array in **/home/content/53/10102353/html/wp-content/plugins/
   ambrosite-nextprevious-post-link-plus/ambrosite-post-link-plus.php** on line **
   114**
 * **Warning**: array_unique() expects parameter 1 to be array, null given in **/
   home/content/53/10102353/html/wp-content/plugins/ambrosite-nextprevious-post-
   link-plus/ambrosite-post-link-plus.php** on line **114**
 * Using this code:
 *     ```
       <?php previous_post_link_plus( array(
       	'order_by' => 'custom',
       	'meta_key' => 'EventStartDate',
       	'in_same_tax' => 'public-programs',
       	'format' => '%link &mdash;'
       ) ); ?>
       ```
   
 * I can’t figure out what’s wrong. If I comment out the first three array elements,
   leaving only the ‘format’ pair, it works, but the reason I got this plugin was
   to exclude a taxonomy in the next/previous links.
 * [http://wordpress.org/plugins/ambrosite-nextprevious-post-link-plus/](http://wordpress.org/plugins/ambrosite-nextprevious-post-link-plus/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [ambrosite](https://wordpress.org/support/users/ambrosite/)
 * (@ambrosite)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/array-function-errors/#post-4424374)
 * Are you certain that ‘public-programs’ is the correct name of your custom taxonomy?
   The only thing I can see that would cause this problem is an invalid taxonomy.

Viewing 1 replies (of 1 total)

The topic ‘Array function errors’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/ambrosite-nextprevious-post-link-
   plus.svg)
 * [Ambrosite Next/Previous Post Link Plus](https://wordpress.org/plugins/ambrosite-nextprevious-post-link-plus/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ambrosite-nextprevious-post-link-plus/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ambrosite-nextprevious-post-link-plus/)
 * [Active Topics](https://wordpress.org/support/plugin/ambrosite-nextprevious-post-link-plus/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ambrosite-nextprevious-post-link-plus/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ambrosite-nextprevious-post-link-plus/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [ambrosite](https://wordpress.org/support/users/ambrosite/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/array-function-errors/#post-4424374)
 * Status: not resolved