Deprecated: Function get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead. in /var/www/html/wp-includes/functions.php on line 5383

How to get portfolio "gallery" items working

New Front EN Support Forums Ikebana Theme Support How to get portfolio "gallery" items working

Viewing 3 posts - 11 through 13 (of 13 total)
  • Author
    Posts
  • #1898
    mmsatori
    Keymaster

    Hey Chris,

    let me clarify – only the images that are uploaded anew to a particular post are displayed in the gallery? If that is the case, then it’s the intended behaviour – you see, in WordPress only the images that are uploaded to the particular post become its attachments, otherwise (e.g. if you include them via a media gallery query) they do not become associated with the post; not sure why WordPress authors did it like this, yet it places certain limitations as to how I can render e.g. image gallery posts. Since the images for the gallery are sources from attachments (to this particular post), the gallery will only show the images that are being uploaded directly in that post; please note that it is not necessary to even insert them INTO the post – just uploading them in the post and saving changes should be sufficient. You can control which images are attached to which post in the “Media” admin menu.

    In case I misunderstood your question, please let me know!

    Sincerely,
    Andrew / Satori Studio

    #1899
    tallhat
    Participant

    ok sure – that makes sense. one question – HOW do you control which images are attached to which post exactly? i seem to be able to attach an ‘unattached’ image to a post from a list, but once an image is attached how do you change it? or do you have to delete the image and add it again?
    it’s not a big deal – i can work around this now that i understand the functionality.

    it would be nice to be able to define images like this though! [gallery ids="929,927"]

    #1904
    mmsatori
    Keymaster

    Yes, as far as I know there is no way to “unattach” the image from a post (you can attach new ones though, via the “Uploaded to” column in the “Media” admin menu). You can try using this third-party plugin for detaching images from posts.

    And yes, it would be so much easier to source the images from an inserted gallery, yet during theme development I haven’t found a way to tell the php code to look up the images from an inserted gallery.

    Sincerely,
    Andrew / Satori Studio

Viewing 3 posts - 11 through 13 (of 13 total)
  • You must be logged in to reply to this topic.