How to provide support for [gallery] shortcode?

I’m developing a new custom theme – and noticed that if a post contains the shortcode it gets ignored (edit: I mean that the HTML delivered to the browser does not include , nor anything in its place… I think there’s a blank line or two)

My Theme is

Read More
  1. grabbing post contents via the_content('→');
  2. also removing the standard <p></p> wrapper via remove_filter('the_content', 'wpautop');

The Codex does not list this as one of the features you explicitly have to add support for – but we know the codex can be outdated/incomplete at times.

Anyways, what is it needed for a theme to recognize (and/or other such standard shortcodes) ?

Related posts

Leave a Reply

1 comment

  1. Have you added any images to the page in which you are using the gallery?

    The [gallery] shortcode won’t work without there actually being attachments on said post.