• Hi,

    I want to use gallery shortcode on my tag.php page. Let’s say I have “tree” tag. And I want to see all images contains “tree” caption or description on “tree” tag page. If I use this:
    <?php echo do_shortcode('[gallery captiontag="tree"]'); ?>
    Is this code show all images that have “tree” caption, tag, description or alternative text? If this don’t is there another way to do this?
    Thanks.

    Sorry for English…

Viewing 1 replies (of 1 total)
  • Will Brubaker

    (@willthewebmechanic)

    Automattic Happiness Engineer

    Howdy rea-secret,

    No, the code you have pasted has nothing to do with which images will be displayed, but rather will wrap the image captions with a <tree> tag, which is no good. Source: Gallery Shortcode Codex

    You will likely need some sort of custom solution or other strategy.

Viewing 1 replies (of 1 total)
  • The topic ‘Caption or Description Based Gallery Shortcode?’ is closed to new replies.