WordPress.org

Ready to get started?Download WordPress

Forums

2.7rc1 and [gallery] shortcode (20 posts)

  1. YorkshireLad
    Member
    Posted 5 years ago #

    Hi all,

    Upgraded to 2.7RC1, and very much enjoying it. However, I'm having a problem with images/media.

    I went the media library, added a lot of images, then created a new page and associated five of the new images with it. If I then put the [gallery] shortcode in, I should get the five images displaying, shouldn't I? Instead, I get nothing. I can add the images from the library using the Add Image button, but they way I've done it should work - or am I wrong?

    Gary

  2. YorkshireLad
    Member
    Posted 5 years ago #

    Bad form to follow up on one's own post, I know, but I can add images directly to the post, and the gallery tag works fine.

    So for me, at least, being able to bulk-add items to the Media Library doesn't work; I can only add them to pages/posts.

    Any one else having the same problem?
    Gary

  3. Ovidiu
    Member
    Posted 5 years ago #

    ahhh!

    you tell your page: [ gallery ] how should the post know what pictures to include into the gallery?

    If you upload pictures while creating a page, they get "assigned" to that page, that's why the gallery tag works. Did you read through this? http://codex.wordpress.org/Using_the_gallery_shortcode

  4. YorkshireLad
    Member
    Posted 5 years ago #

    Yes, I understand that; but 2.7 allows you to upload images, then assign them to a post or page afterwards (and to more than one post / page, I'm guessing). At least, that's what it looks like to me (otherwise, why have the option to upload unassigned images?), and that's the bit that isn't working for me.

    Gary

  5. Ovidiu
    Member
    Posted 5 years ago #

    the point of uploading unassigned images is to have them in the media library, from where you can insert them into posts. one-by-one. without assigning them to any post, but rather to several posts.
    Previously I had the problem not being able to insert a picture into several posts, only into the one I uploaded it to...

    As far as I know, there is no way to "assign" a bunch of images from the media library to a certain post, except for insertign them into as many psots as you wish but not as a gallery.

  6. dan.safary
    Member
    Posted 5 years ago #

    actually there is and that's what [ gallery ] shortcode does.
    wp 2.7 has a problem with [ gallery ] shortcode ,
    i used this a lot in my post's and now they are disabled and the images that were supposed to be showed by [ gallery ] aren't there anymore .
    and it sucks,I guess i have to find a workaround, i really need this.

    SmashingStyles.com

  7. Ovidiu
    Member
    Posted 5 years ago #

    [ gallery ] inserts the images attached to one post into the post itsself, and if you specify an ID you can isnert another posts images, but how do you want [ gallery ] to insert just some pictures you upload with the media gallery?

  8. dan.safary
    Member
    Posted 5 years ago #

    yes [gallery] shows all the images that has been uploaded to the current post or other post(i thought he wants to show all of the images in a gallery).

    I had a problem which [ gallery ] shortcode wasn't working and I disabled a plugin that was using a js and it solved the problem .

    SmashingStyles.com

  9. WizardGuy
    Member
    Posted 5 years ago #

    I have this problem with the gallery shortcode, but mine is putting a space right before the url in the img tag.

    ie: img=" http://url"

    I'm trying to figure out why. Doesn't seem to be a plugin.

  10. WizardGuy
    Member
    Posted 5 years ago #

    I spoke too soon. Was an updated version of Google Analytics for WordPress

    Version 2.6.4

  11. Sherwin Techico
    Member
    Posted 5 years ago #

    Confirming. http://wordpress.org/extend/plugins/google-analytics-for-wordpress/ 2.6.6.

    Having the option to track downloads, etc. messes up [gallery] shortcode.

  12. Joost de Valk
    Member
    Posted 5 years ago #

    Just committed version 2.6.7 of this plugin which fixes the issue!

  13. Sherwin Techico
    Member
    Posted 5 years ago #

    I second the fix. Thanks Joost.

  14. Joost de Valk
    Member
    Posted 5 years ago #

    Could someone set this topic to resolved? Thx!

  15. YorkshireLad
    Member
    Posted 5 years ago #

    Er, how is this resolved, exactly? Wizard Guy's add-on problem might be, but I still can't upload images and then attach them to posts; only upload images when I've already got a post.

    Gary

  16. temptingmama
    Member
    Posted 5 years ago #

    This fix provided has not solved my issues with the uploader either.

    I've been having a similar issue to YorkshireLad, as well as the following:

    When trying to input an image file, the uploader opens in a new window and I have been manually inputting the image URL into my post because when I click on "insert into post" the uploader proceeds to a blank screen.

    I have been using the browser option since Flash 10 has broken my file uploading option for multiple flies...

    I haven't been able to locate a plugin within my installation that's been causing this error either.

  17. minktoast
    Member
    Posted 5 years ago #

    I would like to confirm exactly YorkshireLad's issue in WP 2.7.1

    Sequence of events is:

    1. Bulk Upload images to media library
    2. Sometime later create a new post and save it
    3. Go to media library and View 'unattached' images
    4. use new feature in 2.7 to 'attach them to a post'
    5. seems to work as media library shows images attached to a post
    6. put in gallery shortcode
    7. preview post - gallery is empty

    NB: Gallery works OK for me if I upload the files at the time of writing the post, but this is not always the case.

    I'd say this is a bug - did you get any resolution yet YorkshireLad?

  18. minktoast
    Member
    Posted 5 years ago #

    Aha - solved it (for me)...

    I disabled the wp-omatic plugin and it works now.

  19. neondeon
    Member
    Posted 5 years ago #

    For what it's worth, the linked instructions for Gallery Shortcode do not clarify the happy path for inserting images into a post so that they appear in a neatly arrayed gallery, but not in the post following the gallery within that post.

    When doing the intuitively obvious thing (add images to library, then select them for post), the images appear in the gallery and in the post.

    Could someone please update the instructions for Gallery Shortcode so that people know what NOT to do, and what results they will get if they do this-or-that?

    I'm actually a web veteran, but this one has me spinning in circles.
    thanks!
    d

  20. jelewis8
    Member
    Posted 5 years ago #

    @YorkshireLad Did you ever solve this issue?

Topic Closed

This topic has been closed to new replies.

About this Topic