Image Gallery

This topic is: not resolved

Tagged: 

This topic contains 2 replies, has 2 voices, and was last updated by  gavinjb 1 year, 5 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #47697

    gavinjb
    Participant
    Post count: 5

    I have just install BackCountry Theme and trying to work out how to get a Gallery working, I first of all looked through several of the plugins, but as yet I have been unable to find a Gallery I like, all I am after is something similar to the basic Gallery built into WP, but with forward/back buttons & a link to return to the post the gallery is in, it must have however the facility to comment on each photo in my gallery.

    I have doing some googling I found an article on creating an image.php file which I have managed to get the back/next buttons to be displayed with its help, however I now have lost the comments at the bottom and it is not apply my theme, so any help would be appreciated.

    The link to the article I found is http://ottopress.com/2011/photo-gallery-primer/

    and the code I have so far done for the gallery is as follows (more or less copy and paste from the article!)
    [code]
    <?php // Get Parents Title
    echo "post_parent). "'>Go back to ". get_the_title($post->post_parent) .""; ?>

    <?php // Navigation
    echo previous_image_link(false,'Previous Photo');
    echo next_image_link(false,'Next Photo'); ?>

    <?php // display image
    echo wp_get_attachment_image( $post->ID, 'medium' ); ?>

    <?php // get image data
    $imagemeta = wp_get_attachment_metadata();

    if ($imagemeta['image_meta']['camera']) {
    echo "Camera: " . $imagemeta['image_meta']['camera'];
    }

    if ($imagemeta['image_meta']['shutter_speed']) {
    echo 'Shutter: ';

    // shutter speed handler
    if ((1 / $imagemeta['image_meta']['shutter_speed']) > 1) {
    echo "1/";
    if (number_format((1 / $imagemeta['image_meta']['shutter_speed']), 1) == number_format((1 / $imagemeta['image_meta']['shutter_speed']), 0)) {
    echo number_format((1 / $imagemeta['image_meta']['shutter_speed']), 0, '.', '') . ' sec';
    } else {
    echo number_format((1 / $imagemeta['image_meta']['shutter_speed']), 1, '.', '') . ' sec';
    }
    } else {
    echo $imagemeta['image_meta']['shutter_speed'].' sec';
    }
    } ?>
    [/code]

    I feel I must mention that my knowledge of php & html is limited and until last week I had never used WordPress so I am somewhat of a beginner and I am getting the feel that I am trying to do something a bit advanced.

    If anyone knows of an plugin that can help with my requirements please let me know as I am at the stage of after something nice an easy to setup.

    Thanks,

    Gavin,

    • This topic was modified 1 year, 5 months ago by  gavinjb.
    • This topic was modified 1 year, 5 months ago by  gavinjb.
    #47700

    braddalton
    Participant
    Post count: 10563

    Jetapack includes different galleries which hook into the native WordPress gallery functions. These allow commenting on images and you can also install a plugin to link each image to a custom url.


    #47704

    gavinjb
    Participant
    Post count: 5

    Thanks, just found that, looks good, one other problem is there a way in a gallery to set the image size to Full and not medium (when viewing the single image), I have found an article (see below), but it relies on copying single.pgp as image.php and editing it, the child theme I am using doesn’t have a single.php and haven’t been able to find any other solutions so far.

    http://nichpakaich.com/how-to/full-size-image-in-wordpress-default-gallery

    Thanks,

    • This reply was modified 1 year, 5 months ago by  gavinjb.
    • This reply was modified 1 year, 5 months ago by  gavinjb.
Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.