I’m trying to make a photo gallery page for all my photos in my post-gallery post and have a modal open when you click on the photos. In the page there will probably be almost 100 photos and i’m not sure how to do this in a good way without duplicating the code for the modal 100x. I have considered using plugins but i’d doing this as part of making my own website and learning developing wordpress themes so i’d prefer if the solution is done with code.
I want change the WordPress gallery html layout, By default, the output of HTML is as follows:
WordPress has a really great native gallery function. The only downside I find is that it requires you to have the images on your domain.
We’re building a plugin that displays posts, and we also want to display the image gallery when it is used in a post. However, we need to limit the number of photos displayed? Is that possible?
How can I make all gallery images to open the high resolution image in a new window?
It’s been talked many times that WordPress outputs some really bad code for the built-in gallery function.
Is there any way I can take a URL of an image and find the attachment or post id of that image in the database?
Is there a way to split up the post content and the gallery short code. I want to display the gallery outside my normal content no matter how or where it is placed. I can use this to get the shortcode itself:
I’d like to change only one output of native WP Gallery (in media.php)