WordPress Gallery is not displaying

enter image description here

I have developed a custom wordpress theme from scratch. I’m having a issue in it. When I try to use native wordpress gallery shortcode in my post or page, It is display fine in the editor but its not displaying on the front end.

I even tried it by using:

echo do_shortcode('');

But nothing has shown up…

Other post / page content is displaying fine but just gallery is not displaying. Its like its not even generating anything on the front-end.

If I switched the theme to any other theme it work but not in my theme, so its clear that its a theme problem. Do I have to add some kind of theme support for the gallery?

Any help would be appreciated 🙂

Read more here: WordPress Gallery is not displaying

Leave a Reply

Your email address will not be published. Required fields are marked *