Title: Note and Problem in Plugin Code
Last modified: August 22, 2016

---

# Note and Problem in Plugin Code

 *  [AshtonSanders](https://wordpress.org/support/users/ashtonsanders/)
 * (@ashtonsanders)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/note-and-problem-in-plugin-code/)
 * For some reason, I could never get the Album shortcode to work. I ended up having
   to remove this if statement from the get_album_display function:
    if ( in_array(
   $album->getGphotoId(), $show_albums) )
 * And even then, I was only getting the Google Account’s Image thumbnail, instead
   of the album cover.
 * Quick note:
 * You have ‘max_results’ twice in both of your shortcode files:
 *  // Extract the attributes into variables
    extract( shortcode_atts( array( … ‘
   max_results’ => $options[‘max_results’], … ‘max_results’ => $options[‘max_results’],…),
   $atts ) );
 * [https://wordpress.org/plugins/google-picasa-albums-viewer/](https://wordpress.org/plugins/google-picasa-albums-viewer/)

The topic ‘Note and Problem in Plugin Code’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/google-picasa-albums-viewer_c6c0be.
   svg)
 * [Google Photos Gallery with Shortcodes](https://wordpress.org/plugins/google-picasa-albums-viewer/)
 * [Support Threads](https://wordpress.org/support/plugin/google-picasa-albums-viewer/)
 * [Active Topics](https://wordpress.org/support/plugin/google-picasa-albums-viewer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-picasa-albums-viewer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-picasa-albums-viewer/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [AshtonSanders](https://wordpress.org/support/users/ashtonsanders/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/note-and-problem-in-plugin-code/)
 * Status: not resolved