wppa_get_thumbs – undefined function
-
Hi,
I did use some special code you provided me years ago. The idea is to list all picture thumbnails that fit to the TAG on the tag page.
Today I recognized this no longer works (maybe due to updates):
Fatal error: Uncaught Error: Call to undefined function wppa_get_thumbs() in ... I commented the line with the call of wppa_get_thumbs. This solves the issue but sure does not show any pictures. Is there a new function or another solution I can use? Thank you! The original code was: <code></code><?php if ( function_exists( 'wppa_albums' ) ) { // Init global $wppa; global $thumbs; global $photo_count; // Find the tag $my_tag = single_tag_title( '', false ); $my_tag = str_replace( '&', '&', $my_tag ); $my_tag = wppa_sanitize_tags( $my_tag ); // echo 'Debug:Tag='.$my_tag; // Find the count of photos $wppa['is_tag'] = $my_tag; wppa_get_thumbs(); $photo_count = is_array( $thumbs ) ? count( $thumbs ) : 0; // If photos, show them if ( $photo_count ) { echo '<h2 class="entry-title"><b>Galerie-Fotos</b> - passend zu dem Artikel-Schlagwort</h2>'; echo '</br>'; //echo do_shortcode( '[wppa type="slide" album="#tags,'.$my_tag.' size="auto" align="center"][/wppa]' ); echo wppa_insert_shortcode_output( do_shortcode( '[wppa type="thumbs" album="#tags,'.$my_tag.'" size="auto" align="center"][/wppa]' ) ); } // If no photos, say it and clean up ! else { //echo 'Es gibt leider keine passenden Fotos mit dem Schlagwort <b>'.$my_tag.'</b>'; wppa_reset_occurrance(); } echo '</br>'; } ?><code></code>The page I need help with: [log in to see the link]
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
The topic ‘wppa_get_thumbs – undefined function’ is closed to new replies.