Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter aalokdhond

    (@aalokdhond)

    tried using this <?php do_shortcode(‘[wppa type=”photo” photo=”#potd” size=”450″ ][/wppa]’); ?> but no luck

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Try this:

    <?php
    if ( function_exists('wppa_albums') ) { // wppa active
    global $wppa;
    $wppa['single_photo'] = '#potd';
    echo wppa_albums('', '', '450', 'left'); // 450px wide, left aligned
    }
    ?>

    Thread Starter aalokdhond

    (@aalokdhond)

    superb but i had a question do u have a function reference or something
    I want to display the cover images of the latest 8 albums. Well was going through your function list but dnt know if i’m going the right way

    This is what im trying

    [ Moderator Note: Please post code or markup snippets between backticks or use the code button. The code button is your friend, please learn to use it. ]

    $albums = wppa_get_albums();
    
    			foreach($albums as $k => $v) {
    
    				?><a>wppa-album=<?php $v['id']; ?>&wppa-cover=0&wppa-occur=1"  ><img src="<?php echo wppa_get_photo_url($v['main_photo']); ?> "/></a>
    				<?php
    			}

    sorry to bother u like this ??

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    For the photo of the day try this:

    <?php echo do_shortcode('[wppa type="photo" photo="#potd" size="450" align="left"][/wppa]'); ?>

    It is mode futuresafe.

    Hi,
    I’ve tried this code below to display the photo of the day.
    But the link (lightbox) on the picture is not present.
    I can I do ?
    Thanks (& congratulation for your plugins)
    Version 4.7.4
    <?php
    if ( function_exists(‘wppa_albums’) ) { // wppa active
    global $wppa;
    $wppa[‘single_photo’] = ‘#potd’;
    echo wppa_albums(”, ”, ‘450’, ‘left’); // 450px wide, left aligned
    }
    ?>

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    The links for single photo applies (Table VI-0), not the potd link, as it is a single photo (accidently being the potd).

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    tried using this <?php do_shortcode(‘[wppa type=”photo” photo=”#potd” size=”450″ ][/wppa]’); ?> but no luck

    is an error in, should be:

    <?php echo do_shortcode(‘[wppa type=”photo” photo=”#potd” size=”450″ ][/wppa]’); ?>

    Is easyer and more future safe

    Thanks ! it’s works !

    However : the text ‘[/wppa]’ appears under the photo
    (I’ve delete it in the code)
    Version of WP Album : 4.7.4
    Version of WordPress : 3.1.4

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Plugin: WP Photo Album Plus] POTD shortcode in template file’ is closed to new replies.