Tag Info

Hot answers tagged


There's a great PHP solution here which will add the gallery editor to the custom post type editor - great, if like me, you are creating custom post types using PHP and importing data using WPAllImport. In this case, I want to ensure I use the default gallery so I can allow my clients to edit/add/delete imported images. The code below adds the gallery ...


Gallery shortcode output is handled by gallery_shortcode function. If you look at the source code I linked you can udersand there are different way to customize the output: Using filters You can completely override gallery output using 'post_gallery' filter. Customize size via atts One of the argument you can pass to function using shortcode is 'size', ...

Only top voted, non community-wiki answers of a minimum length are eligible