Support » Plugin: WP Photo Album Plus » 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

    (@opajaap)

    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.

    I need to insert a photo gallery.

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    First study the scripting reference: Here

    Then the documentation of wppa_albums(): Here

    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

    (@opajaap)

    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

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Insert Single Photo through PHP’ is closed to new replies.