How to specify a Next Gen Gallery short code with custom value
-
I got this code to call the Next Gen Gallery quick tag from wherever in the code even if not set in the post page:
<?php $gal = '[gallery=5]'; $gal = apply_filters('the_content', $gal ); echo $gal; ?>
which displays the gallery with id number 5.
I need to substitute ‘[gallery=5]’ with a call to a specific custom value that will of course have the short tag format. How should I do? I have tried:
<?php $gal = '<?php meta('camere'); ?>'; $gal = apply_filters('the_content', $gal ); echo $gal; ?>
but I get an error.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to specify a Next Gen Gallery short code with custom value’ is closed to new replies.