WordPress.org

Ready to get started?Download WordPress

Forums

Can Gallery Feature be Done Right At Last, Please? (4 posts)

  1. Tranny
    Member
    Posted 5 years ago #

    I use WP internal gallery feature to add galleries of pictures to my posts and it's ease of use and flexibility make it an amazing addition. I just don't get why it has not been done all the way through and just kind of left half a$$ed. I'm talking about inclusion of a gallery into the post by using [gallery] command.

    It should be the easiest of things to make sure the gallery thumbs generated have alt tags. I can't wrap my head around the fact that after so many updates, the gallery thumbs still don't come with alt tags. What gives?

    Also, since attachment pages are automatically created, allowing ultimate ease of use for end users, why is there no additional navigation on attachment pages? There should be a Previous and Next buttons (as well as Index or something else that would return them to the post page which contains all thumbs) so a surfer can browse through the gallery of pictures without the need to hit the back button and click on another thumb. I just don't get how these fundamental features are skipped with each update. What am I missing here?

    Why is the gallery feature there at all if it’s incomplete? And it’s not as if I was talking about some complicated stuff. These are easy things to add. Make the gallery feature complete not half a$$ed. There should be no need for another plug in in order to give galleries the functionality they should have in the first place. And each time there is a new version of WP about to get published and you post the list of features and enhancements, there is a pile of worthless fixes that come with new release yet no one goes to fix this fundamental stuff. How is this possible?

  2. Tranny
    Member
    Posted 5 years ago #

    Is there any way I could escalate this to the developers so it doesn't get buried and never dealt with?

  3. Samuel Wood (Otto)
    Tech Ninja
    Posted 5 years ago #

    It should be the easiest of things to make sure the gallery thumbs generated have alt tags. I can't wrap my head around the fact that after so many updates, the gallery thumbs still don't come with alt tags. What gives?

    Err.. They do have alt tags. Here's an example of one of my galleries:
    http://ottodestruct.com/blog/2008/08/18/chicago-trip/

    Notice that they have alt tags. I did nothing special to make this happen.

    since attachment pages are automatically created, allowing ultimate ease of use for end users, why is there no additional navigation on attachment pages

    Perhaps because you don't have the proper code in your theme?

    Themes control what the attachment pages look like. Create your image.php file in your theme folder and make it look the way you want. If there is no image.php, then the attachment.php is used. After that it goes to single.php and index.php. Normal template hierarchy, basically. http://codex.wordpress.org/Template_Hierarchy#Attachment_display

    So, if you want previous and next buttons, then add them to your theme using the previous_image_link() and next_image_link() functions. That's why they were created, in version 2.5.

    Here's an example of them being used. Okay, not a great example as my page has been horked up for other reasons (I'm redesigning now), but you can see the thumbnails for previous and next from the image pages:
    http://ottodestruct.com/blog/2008/08/18/chicago-trip/2765219481_a5c5398c5c_o/

    The gallery really does work pretty well, but it's not free. Themes really need to start supporting it better, in order to make their galleries more integrated overall.

  4. Tranny
    Member
    Posted 5 years ago #

    This has been very helpful. Thanks Otto ;)

Topic Closed

This topic has been closed to new replies.

About this Topic