• Resolved rwetzel

    (@rwetzel)


    Having some trouble with the attachments option. I have also added the post_status as inherent with no luck. I also added the parent post id. The example on the plugin site seems not to be working either.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Darren Cooney

    (@dcooney)

    Hi,
    This example is not working for you?
    https://connekthq.com/plugins/ajax-load-more/examples/attachments/

    Confirming you added the media attachments to the post?

    Cheers,

    Thread Starter rwetzel

    (@rwetzel)

    No actually, that example doesn’t show anything but the load more button.

    I did, but using the example code and repeater, I can only see the featured image.

    Plugin Author Darren Cooney

    (@dcooney)

    Yea, it’s not working unless you are logged in. I wonder if it’s been this way since I added this example ?? yikes!

    thanks for the heads up on this.

    There is a code issue with a post_status security fix I had in place. I’ve fixed it in the example, but will need to also push the changes into the next release.
    https://connekthq.com/plugins/ajax-load-more/examples/attachments/

    Im assuming you are logged in while testing? So the issue is likely something else then?

    Thread Starter rwetzel

    (@rwetzel)

    Ah…I see now…I always test in a incognito window so it didn’t work. Now it works while logged in. ??

    If I don’t hold you responsible for anything I screw up, could you send me the fix? Is it just a few lines of code?

    Plugin Author Darren Cooney

    (@dcooney)

    In ajax-load-more.php there is a line of code:
    if($post_status != 'publish' || $post_status != 'inherit')

    It should be:
    if($post_status != 'publish' && $post_status != 'inherit')

    Sorry, I don’t know the line number because I’m on my phone but just search this.

    Let me know how you make out.

    Cheers,

    Thread Starter rwetzel

    (@rwetzel)

    You are the man. Working like a gem. Great plugin!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Attachments Not Working’ is closed to new replies.