media library JS
-
Hi @mariusjopen,
I'm working on a site that involves using javascript (in the custom css/html header) to populate the gridder of a page with images. I'm wondering if you know of a clean way to access/refer directly to images uploaded to the media library from the header (e.g. I want to be able to populate an array with all image urls from a particular media library folder). Some options I've tried haven't worked properly, and I'm not sure the custom header was meant for workarounds involving PHP. Would appreciate any help, thanks!
-
Dear @d__m
that sounds like PHP to me. But maybe there is a jQuery solution. Or you host those images on Amazon S3.Best!
Marius
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it
Forgot your key, lost your files, need a previous Lay Theme or Addon version?
Go to www.laykeymanager.com