gallery shortcode not finding attachments v 0.6

HomeSupportFile Un-attachgallery shortcode not finding attachments v 0.6

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

    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?


    Hey – I followed this up with a post here on the codex:

    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.

    Xpark Media

    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.