Forums

Yet Another Related Posts Plugin
Limit for manual include (5 posts)

  1. Tom Peak
    Member
    Posted 5 months ago #

    Hey mitcho,

    first of all, thx for the great plugin! Easy to use and straight forward!

    Now i have a Problem:

    I use <? related_posts(array('use_template'=>true,'template_file'=>'yarpp-template-slideshow.php','limit'=>'100'));?>

    but by these limit I get:
    Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'YARPP_Cache_Bypass::join_filter' was given in /data/web/e12516/html/enabled.io/client/4e7/SMC/wp-includes/plugin.php on line 227 and a lot of posts.

    When I use a limit of 10 I only get only five posts but no error.

    The limit attribute I was getting by reverse engineering but maybe I am wrong.

    The only thing I want a several number of related posts to display in my great jQuery Scoller Template.

    -.-

    tom

    http://wordpress.org/extend/plugins/yet-another-related-posts-plugin/

  2. Thanks for trying out the latest beta. I haven't been able to reproduce this issue, but it would be great if you could send me a stack trace... or else, go to your wp-includes/plugin.php and tell me what is at line 227?

  3. Tom Peak
    Member
    Posted 5 months ago #

    wp-includes/plugin.php on line 227:
    $args[0] = call_user_func_array($the_['function'], array_slice($args, 0, (int) $the_['accepted_args']));

    I thing there is an out of range for the amount of 100. But I don't understand why 10 delivers only 5 Posts.

    Thx for developing,

    tom

  4. Tom Peak
    Member
    Posted 5 months ago #

    btw. its the function apply_filters_ref_array($tag, $args) …

  5. I believe this is fixed now. Please try the latest trunk version, which will become 3.4.1: http://downloads.wordpress.org/plugin/yet-another-related-posts-plugin.zip

Reply

You must log in to post.

About this Plugin

About this Topic