From what I’ve read, WordPress supports an ‘include’ and ‘exclude’ option in the gallery shortcode. If that is correct, I should be able to write
in a page’s html and have the photos that are attached to those two posts show up in a gallery in my page. However, as soon as I add a second number to that option, the gallery disappears from the page. I can successfully write any of the following:
[gallery id="68"] or
And those will all successfully add a gallery to my page with the correct images. But as soon as I put a second number in the ‘include’ or ‘id’ attribute, the gallery is stripped from the page. I’ve also tried to use the ‘exclude’ attribute and list all galleries except the ones that I want. That doesn’t work either.
Are the include and exclude attributes no longer a part of WordPress? I’m running WordPress 3.1.
- The topic ‘include tag in gallery shortcode not working’ is closed to new replies.