2012-08-10, 21:23:20
pier Wrote:I've child pages for main page.
In each child page, I've a gallery called this way
(% gallery name='my_gallery' thumb=0 %)
...
For main page, I've done a special template based on regular one to call all its child pages.
At the right place, I've put in template the following code :
<?php $items = getChildren(return_page_slug());?>
<?php foreach($items as $item): ?>
<?php getPageContent($item); ?>
<?php endforeach;?>
Page display with child page, meaning content of child page is ok, but instead of the thumb of gallery for each child page I've the text (% gallery name='my_gallery' thumb=0 %)
So is gallery doesn't fire up when called this way?
If you include galleries this way (indirectly, not directly on the page), the HTML/HEAD part is missing and thus I18N Gallery does not substitute the placeholder.
Assuming that all your galleries have the same format (type, image size, etc.), you can add <?php get_i18n_gallery_header('galleryname'); ?> to the HEAD of your template, where galleryname is the name of one of the galleries.