[gallery] and exclude
-
I’m editing template for showing multiple posts…
I want to show just images from selected post not text… I removed text content from template and added
<?php
echo do_shortcode(‘[gallery size="large" ]‘);
?>
It works fine, however I want more control over shown pictures. I want two galleries, one with large picture, and second with several smaller (3)…
The problem is, I do not know how to dynamically exclude everything but First, and in second case everything but, second, third & forth.
Yes, I have read the documentation
http://codex.wordpress.org/Gallery_ShortcodeAnd yes I do understand how to setup static gallery like
[gallery id=" 72" exclude="21,32,43"]
however I need code that I can use dynamically on templates…
Basically I need something like
[gallery include="AllPictures.Top(1)" ]
[gallery include="AllPictures.Top(4)" exclude="AllPictures.Top(1)"]I’m not working with php/wordpress often… so even calling methods and declaring variables is frustrating :)
-
You’re refering to a wordpress.org document not wordpress.com. Please post the link to your blog.
- The topic ‘[gallery] and exclude’ is closed to new replies.