WordPress.org

Forums

Special Recent Posts
[resolved] Warning message on page when I insert Php code into Template. (2 posts)

  1. lolaaa
    Member
    Posted 1 year ago #

    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/

  2. johnh10
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Special Recent Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic