Title: Problem with PHP
Last modified: August 20, 2016

---

# Problem with PHP

 *  Resolved [helloengage](https://wordpress.org/support/users/helloengage/)
 * (@helloengage)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/problem-with-php-3/)
 * Hi there,
 * I tried to use the `<?php wppa_albums(19, 'slide'); ?>` and I put it into my 
   site. I don’t have an album 19, so it gave me an error. I then made it to say:
 * `<?php wppa_albums(1, 'slide'); ?>`
 * When I did this, it actually showed nothing on my site. I don’t know why it didn’t
   display anything. Am I missing something? Do I need code above or below it to
   get it to work with this method?
 * Thank you!
    — Joel
 * [http://wordpress.org/extend/plugins/wp-photo-album-plus/](http://wordpress.org/extend/plugins/wp-photo-album-plus/)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [Jacob N. Breetvelt](https://wordpress.org/support/users/opajaap/)
 * (@opajaap)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/problem-with-php-3/#post-3527622)
 * Try this:
 * `<?php echo wppa_albums(1, 'slide'); ?>`
 *  Thread Starter [helloengage](https://wordpress.org/support/users/helloengage/)
 * (@helloengage)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/problem-with-php-3/#post-3527670)
 * Thanks so much!
 * Also, is it possible to have the galleries open to a page like this:
    [http://wppa.opajaap.nl/my-album/?locale=en_US&wppa-album=59&wppa-slide&wppa-occur=1&wppa-photo=2187](http://wppa.opajaap.nl/my-album/?locale=en_US&wppa-album=59&wppa-slide&wppa-occur=1&wppa-photo=2187)
 * Rather than opening up to a page like this:
    [http://wppa.opajaap.nl/my-album/?locale=en_US&wppa-album=59&wppa-cover=0&wppa-occur=1](http://wppa.opajaap.nl/my-album/?locale=en_US&wppa-album=59&wppa-cover=0&wppa-occur=1)
 * There is redundancy on our site with one-too-many clicks. We have to click to
   the gallery page to see only 6-8 photos in thumbnail version, and then to click
   to a larger version.
 * We would like it to just land right away on the larger version, with the smaller
   images under it.
 * Thanks so much!
    — Joel
 *  Plugin Author [Jacob N. Breetvelt](https://wordpress.org/support/users/opajaap/)
 * (@opajaap)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/problem-with-php-3/#post-3527714)
 * > <?php echo wppa_albums(1, ‘slide’); ?>
 * This works, does it???
 * Try this:
 * `[wppa type="slide" album="53"][/wppa]`
 * as content of the page.
 * For full documentation of shortcodes see [http://wppa.opajaap.nl/shortcode-reference/](http://wppa.opajaap.nl/shortcode-reference/)
 *  Thread Starter [helloengage](https://wordpress.org/support/users/helloengage/)
 * (@helloengage)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/problem-with-php-3/#post-3527790)
 * Hi there,
 * Sorry if I’m being redundant. I did realize I think I misspoke about what we 
   were looking for…
 * So when you put your shortcode for ALL albums, you get a page like this:
    [http://wppa.opajaap.nl/my-album/](http://wppa.opajaap.nl/my-album/)
 * We are using the code:
    `%%wppa%%`
 * What we are wondering if if you click one of those gallery links on the MAIN 
   gallery page (using the shortcode `%%wppa%%`), it would open of the gallery page
   to this:
    [http://wppa.opajaap.nl/my-album/?locale=en_US&wppa-album=59&wppa-slide&wppa-occur=1&wppa-photo=2187](http://wppa.opajaap.nl/my-album/?locale=en_US&wppa-album=59&wppa-slide&wppa-occur=1&wppa-photo=2187)
 * Rather than opening up to a page like this:
    [http://wppa.opajaap.nl/my-album/?locale=en_US&wppa-album=59&wppa-cover=0&wppa-occur=1](http://wppa.opajaap.nl/my-album/?locale=en_US&wppa-album=59&wppa-cover=0&wppa-occur=1)
 * Is this something that is possible with the plugin’s settings? Or is there a 
   change we need to make to the short code so that the galleries open this way 
   when clicked?
 * Thanks so much!
 * —
    Joel
 *  Plugin Author [Jacob N. Breetvelt](https://wordpress.org/support/users/opajaap/)
 * (@opajaap)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/problem-with-php-3/#post-3527798)
 * The Slideshow link on the album cover links to the slideshow.
    The View .. photos
   link on the album cover links to the thumbnails. The Title link on the album 
   cover links to what you specify on the Photo Albums -> Album Admin -> Edit ->
   Edit Album Information -> Link Type selection box. Set to **The album photos 
   as slideshow**.
 *  Thread Starter [helloengage](https://wordpress.org/support/users/helloengage/)
 * (@helloengage)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/problem-with-php-3/#post-3527807)
 * THanks!!!
 * Is there anyway to get turn off the “Automatic Slideshow Start” and just have
   it be the photo? We would like to let the user turn it on, and not have it be
   on “auto”.
 * Thanks again!
 * –
    Joel
 *  Plugin Author [Jacob N. Breetvelt](https://wordpress.org/support/users/opajaap/)
 * (@opajaap)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/problem-with-php-3/#post-3527809)
 * Table IV-B3

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Problem with PHP’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-photo-album-plus.svg)
 * [WP Photo Album Plus](https://wordpress.org/plugins/wp-photo-album-plus/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-photo-album-plus/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-photo-album-plus/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-photo-album-plus/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-photo-album-plus/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-photo-album-plus/reviews/)

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 7 replies
 * 2 participants
 * Last reply from: [Jacob N. Breetvelt](https://wordpress.org/support/users/opajaap/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/problem-with-php-3/#post-3527809)
 * Status: resolved