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,
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.
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?
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?
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,
You are the man. Working like a gem. Great plugin!