• The plugin seems to work but I get the following error on each page with the pagination:

    “Invalid argument supplied for foreach() in [the directory of my web site]”

    I’ve tried placing <?php if(function_exists('genarate_ajax_pagination')) genarate_ajax_pagination($wp_query, 'Read More', 'blue'); ?> in multiple pages on different templates, but all to no avail.

    Any ideas would be great.

    Thanks!

    Doron

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author nuwansh

    (@nuwansh)

    Hi Doron,

    I guess the problem is the format setting Parameters of query_posts(). So just try with this format to set the Parameters for query_posts() in your customer template.

    e:q, query_posts( array( 'post_type' => array('post', 'movie') ) );

    And Thanks for let me know this problem. I will fix soon this issue so that work any type of ‘query_posts()’ function.

    Thanks,
    NS.

    Thread Starter dorono

    (@dorono)

    Thanks Nuwansh, I am busy working on projects at the moment, but I will try this asap and post back with the results!

    Thread Starter dorono

    (@dorono)

    Actually, I don’t understand your fix here, what does ‘movie’ have to do with my code?

    Thanks,

    Doron

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Ajax Pagination (Twitter Style)] PHP error: Invalid argument supplied for foreach() in …’ is closed to new replies.