Gallery Shortcode Showing IDs

Remove: $content = get_the_content(); and replace: <p><?php echo $content; ?></p> with: <?php the_content(); ?> See this note on the Codex page for get_the_content(): An important difference from the_content() is that get_the_content() does not pass the content through the ‘the_content’ filters. This means that get_the_content() will not auto-embed videos or expand shortcodes, among other things.

How to make gallery images responsive?

In order for your images to be responsive they require CSS. The CSS will inform the image to stretch 100% of the available space and to automatically adjust the height. img.responsive { width: 100%; height: auto; } Because you don’t want to apply this rule to all images, you’ll need to add a class on … Read more

Gallery backend only

I used to rely on image gallery plugins, like PhotoQ -which no longer exists- or NextGen. For one, a plugin may die and leave a migration problem, or it may be well maintained but require too much of custom coding. Nowadays I try to keep it within WordPress attachment post type. A plugin may handle … Read more