Title: Insert Single Photo through PHP
Last modified: August 19, 2016

---

# Insert Single Photo through PHP

 *  [wahhadesign](https://wordpress.org/support/users/wahhadesign/)
 * (@wahhadesign)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/insert-single-photo-through-php/)
 * I am trying to find the php code to insert a single image in my php. I also can’t
   get the Album to show in PHP either.

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

 *  Plugin Author [Jacob N. Breetvelt](https://wordpress.org/support/users/opajaap/)
 * (@opajaap)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/insert-single-photo-through-php/#post-2068975)
 * Use the function wppa_albums($xid = ”, $typ=”, $siz = ”, $ali = ”)
 * It resides in wppa_functions.php. See th source code for all the possible arguments.
 * Note: you get the html returned, so you need to echo the result.
 *  [jotsa](https://wordpress.org/support/users/jotsa/)
 * (@jotsa)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/insert-single-photo-through-php/#post-2068976)
 * I need to insert a photo gallery.
 *  Plugin Author [Jacob N. Breetvelt](https://wordpress.org/support/users/opajaap/)
 * (@opajaap)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/insert-single-photo-through-php/#post-2069045)
 * First study the scripting reference: [Here](http://wppa.opajaap.nl/?page_id=259)
 * Then the documentation of wppa_albums(): [Here](http://wppa.opajaap.nl/?page_id=400)
 *  [artsmc](https://wordpress.org/support/users/artsmc/)
 * (@artsmc)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/insert-single-photo-through-php/#post-2069148)
 * So I have a slideshow plugin that uses Jquery that I built but I want it to pull
   images from the album. So I’m trying to through the photos in a loop to make 
   this happen, I know I’m missing something as far as how I make a call to the 
   albums
 *     ```
       <ul id="example2">
       	<?php $wppa_show_statistics = true; ?>
       	<?php while (have_posts()) : the_post(); ?>
       				<li><a href="<?php wppa_get_slideshow_url() ?>"><img src="<?php wppa_get_photo_url()?>" alt="<?php wppa_get_photo_name()?>">
       				<span><?php wppa_get_photo_desc() ?></span></a></li>
       	<?php endwhile; ?>
       			</ul>
       ```
   
 *  Plugin Author [Jacob N. Breetvelt](https://wordpress.org/support/users/opajaap/)
 * (@opajaap)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/insert-single-photo-through-php/#post-2069159)
 * As of version 3.0 the high level wppa+ api routines **return** values that must
   be **echo**‘ed.
 * btw, the code above will not function anyway.
 * Try this:
 *     ```
       echo wppa_albums($albumnumber, 'slide');
       ```
   
 * or this:
 *     ```
       echo wppa_albums('13', 'slideonly', '450', 'right');
       ```
   
 * for a full documentation see [This documentation page](http://wppa.opajaap.nl/?page_id=400)

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

The topic ‘Insert Single Photo through 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/)

 * 5 replies
 * 4 participants
 * Last reply from: [Jacob N. Breetvelt](https://wordpress.org/support/users/opajaap/)
 * Last activity: [15 years, 1 month ago](https://wordpress.org/support/topic/insert-single-photo-through-php/#post-2069159)
 * Status: not resolved