Title: Warning message on page when I insert Php code into Template.
Last modified: August 21, 2016

---

# Warning message on page when I insert Php code into Template.

 *  Resolved [lolaaa](https://wordpress.org/support/users/lolaaa/)
 * (@lolaaa)
 * [12 years ago](https://wordpress.org/support/topic/warning-message-on-page-when-i-insert-php-code-into-template/)
 * decided to paste the Php Code you provided. (The Installation page of plugin)
   into my Theme Template and get an Warning message on top of srp and dont know
   how to fix this.
 * Warning: array_merge() [function.array-merge]: Argument #2 is not an array in/
   home/dailydos/public_html/wp-content/plugins/special-recent-posts/classes/class-
   main.php on line 135
 * The php Code.
 * <?php
    if(function_exists(‘special_recent_posts’)) { special_recent_posts($args);}?
   >
 * Also any Ideas on how I can display your srp posts Horizontal? as it’s currently
   displaying Vertical when I paste the php code onto my Template.
 * Thank you in Advance again!
 * [https://wordpress.org/plugins/special-recent-posts/](https://wordpress.org/plugins/special-recent-posts/)

Viewing 1 replies (of 1 total)

 *  [johnh10](https://wordpress.org/support/users/johnh10/)
 * (@johnh10)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/warning-message-on-page-when-i-insert-php-code-into-template/#post-4924885)
 * I don’t see $args defined anywhere… that is your problem.
 * Either define $args as the example shows or take it out completely to use defaults.

Viewing 1 replies (of 1 total)

The topic ‘Warning message on page when I insert Php code into Template.’ is closed
to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/special-recent-posts_006699.svg)
 * [Special Recent Posts](https://wordpress.org/plugins/special-recent-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/special-recent-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/special-recent-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/special-recent-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/special-recent-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/special-recent-posts/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [johnh10](https://wordpress.org/support/users/johnh10/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/warning-message-on-page-when-i-insert-php-code-into-template/#post-4924885)
 * Status: resolved