Modal opens all post IDs

So your script is doing exactly what you have told it to do. Here you are passing the element to the function, but you never use it, instead you just query all elements with a class and add another class. function moreinfoModal(field) { console.log(field.id); $(‘.moreinfo-modal’).toggleClass(‘open’); } What you should do is only add the class … Read more

overwrite wordpress gallery with custom gallery shortcode

At the top of the Gallery Shortcode Callback is a filter hook: post_gallery If any non-empty / non-null output is returned from this filter the shortcode will use that output instead of the default generation. You can copy the source of the Gallery Shortcode Callabck and modify it as you see fit. The below is … Read more

Media Library modal customization

By default, in the Media Upload Modal Box you can only filter by Date (Month uploaded) and/or Search. To fully take advantage of the search function you should have proper filenames, alt text and description of every image when you upload them. For pagination you can go to your Media Gallery and turn on List … Read more