WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Flickr Embed
Doesn't seem to work with gallery count. (1 post)

  1. gbclicks
    Member
    Posted 8 months ago #

    Hi

    I started hosting my pictures on flickr and using the plug in to show them in my posts. However, since I started doing this, my "This gallery contains n photos" doesn't seem to work anymore. The function does not seem to pick up the photos used by the plug in.

    Here is my code for the gallery count:

    <div class="gallerycount">

    <?php $images = get_children( array( 'post_parent' => $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC', 'numberposts' => 999 ) );
    if ( $images ) :
    $total_images = count( $images );
    $image = array_shift( $images );
    $image_img_tag = wp_get_attachment_image( $image->ID, 'thumbnail' );
    ?>

    <?php printf( _n( 'This gallery contains %2$s photo.', 'This gallery contains %2$s photos.', $total_images, 'twentyten' ),
    'href="' . get_permalink() . '" title="' . esc_attr( sprintf( __( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ) ) . '" rel="bookmark"',
    number_format_i18n( $total_images ) ); ?>
    <?php endif; ?>

    </div>

    Is there something that is needed to be added to recognize the images from flickr?

    Thanks

    http://wordpress.org/plugins/wp-flickr-embed/

Reply

You must log in to post.

About this Plugin

About this Topic