• Resolved thuanyi

    (@thuanyi)


    Hi Guys,

    i’m getting a message that says : Warning: Invalid argument supplied for foreach() in /home/mettab5/public_html/wp-content/plugins/malinky-ajax-pagination/malinky-ajax-pagination.php on line 103

    i thank you for the effort that you have put forth making the video. Being a non-tech person, i find it useful.

    some of the selectors that you have guided us thru the video are different from what i see when i inspect this page :

    https://mettabuy.com/index.php/test-ajax-load/.

    what i have tried to enter is these :

    posts selector : .page
    post selector : .orbit-image-box-2
    navigation selector : .page-links
    next selector : .nav-links a.next (i don’t have a ‘next’ function)

    Please help! many thanks!!!

    https://www.ads-software.com/plugins/malinky-ajax-pagination/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author craigramsay

    (@malinkymedia)

    Hi, I will fix the error in the next update, thanks for pointing it out. It only shows when there has not been any settings saved straight after activation.

    Regarding your theme the settings vary for every theme that’s why they are different to the video.

    Your settings are right in theory but they won’t actually work with your markup. The issue is that for each 3 of your posts they get wrapped in a section.wpb_row div. The posts themselves need to be siblings of each other. The plugin works by finding the last posts and appending the new ones to that. This type of wrapping of you have makes it diffculy to add in new posts.

    You need to to rework your theme code. So your div.orbit-image-box-2 are children of for example you entry-content div.

    Regarding the next selector again I’d advise using the_posts_pagination() function to generate your markup and you will get east selectors to work with.

    Thanks

    Plugin Author craigramsay

    (@malinkymedia)

    Fixed in v1.3

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Warning : Invalid argument supplied’ is closed to new replies.