• Resolved laikmosh

    (@laikmosh)


    i found some problems when using the [attachment] shortcode, one is that after using it once you cant use it again anywhere else in the page, and second is that after using it, anytime you try to use any other shortcode it keeps showing up info on the last image of the gallery, like this:

    im using this code:

    [loop category=”Venues”]
    [attached]
    [field image]
    [/attached]
    [field title]
    [/loop]

    but the [field title] is showing the title of the last image of the gallery, and any shortcode i use afterwards keeps getting info on that last image, its like if the [/attached] had no effect, how can i reset the fields after using [attached] so it calls info on the post and not on the last image of the gallery?

    https://wordpress.org/plugins/custom-content-shortcode/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Eliot Akira

    (@miyarakira)

    Hello,

    Thank you for pointing this out – that sounds like a problem with [attached] not resetting itself after it’s finished. I’ll look at the shortcode to see where it needs to be fixed. I’ll let you know when I find something.

    Plugin Author Eliot Akira

    (@miyarakira)

    OK, I corrected the [attached] shortcode in the latest update, so it doesn’t interfere with the parent loop.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Problem when using [attachment]’ is closed to new replies.