WordPress.org

Ready to get started?Download WordPress

Forums

WP Photo Album Plus
Insert Single Photo through PHP (6 posts)

  1. wahhadesign
    Member
    Posted 3 years ago #

    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.

  2. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 3 years ago #

    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.

  3. jotsa
    Member
    Posted 3 years ago #

    I need to insert a photo gallery.

  4. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 3 years ago #

    First study the scripting reference: Here

    Then the documentation of wppa_albums(): Here

  5. artsmc
    Member
    Posted 3 years ago #

    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>
  6. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 3 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic