Forum

Thread tagged as: Addons, Gallery

Gallery slug

I am trying to display a single gallery. The gallery slug is 'the-wedding' so I am using:

 <?php perch_gallery_album_images(the-wedding); ?> 

I am getting a PHP parse error:

PHP Parse error:  syntax error, unexpected '-' in /home/founder/public_html/craiglockwood.co.uk/wedding/index.php on line 19

The page will then display the first gallery alphabetically (not the one specified by the slug).

Could this be a hosting issue?

Craig Lockwood

Craig Lockwood 0 points

  • 7 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

The slug is a string, so it needs to be quoted:

<?php perch_gallery_album_images('the-wedding'); ?> 

Man - I am dull. Many thanks.