gallery shortcode not finding attachments v 0.6

Bring Your Business to LifeSupportFile Un-Attachgallery shortcode not finding attachments v 0.6

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #46455
    orionrush
    Participant

    I have a short function which I keep in a plugin.
    It looks for images attached to a post, and inserts them into the_content.

    It works fine for single.php but in loop.php (showing 10 posts at a time) it only works when the images are not attached to any other post.

    it seems as if get_children is not seeing the attachments from loop.php???

    is there a way to fix this?

    #46456
    orionrush
    Participant

    Hey – I followed this up with a post here on the codex:
    http://wordpress.org/support/topic/plugin-file-un-attach-loopphp-gallery-shortcode?replies=1#post-2773648

    I though Im might get feedback from a larger pool of users. So if you respond to this you might do so there where it will help the most people.

    #46487
    Xpark Media
    Keymaster

    get_children will only give you the default attachments, file un-attach uses post meta to assign multiple children to the post “_fun-parent”.

    if you are using version 0.5.5 you can use the function “fun_get_attachments( $arg )” this was a contribution by sebmeric get multiple attachments function. Also I need to add the function available arguments to the documentation page.

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