Support

Account

Home Forums Add-ons Gallery Field Set as featured image & Insert into post buttons missing

Solving

Set as featured image & Insert into post buttons missing

    • kenno

    • October 18, 2013 at 1:18 am

    Hi!
    Is it possible to add “Set as featured image” & “Insert into post” buttons into Gallery field media frame?
    Do anyone know how to easily add them? Or is it not possible?

    /Kenno

    • Elliot

    • October 20, 2013 at 5:21 pm

    Hi @kenno

    Thanks for the request, however the โ€œInsert into postโ€ button is not relevant to this field type, as the gallery field is a very custom interface and would not comply with the_editor. Also, what if the user does not have the_editor in their post_type?

    As for the set as featured image. I would have thought this would be a link already available for each image in the sidebar information.

    Thanks
    E

    • kenno

    • October 20, 2013 at 8:51 pm

    Okay, but a technical question here. How can I add more buttons into the Gallery field media frame toolbar? I know it uses the default select toolbar, but whenever I try to add some buttons, it only works for builtin Media frames (button “Insert media”)

    If you could help me add a button into that toolbar I can conclude this question.

    • Elliot

    • October 21, 2013 at 6:04 pm

    Hi @kenno

    What code are you using to add this button?

    The ACF image popup does not contain the sidebar which may explain why your button is not appearing. Is this possible?

    • kenno

    • October 21, 2013 at 6:37 pm

    Using this code to add button into media frame.
    http://wordpress.stackexchange.com/a/88104
    But its added to the WP builtin “Insert media” because of “wp.media.view.MediaFrame.Post” its added in code.

    ACF image popup or gallery doesnt set a toolbar, but WP core fallback/default toolbar is “select”. My understanding here is that I would either need to create a separate toolbar or use some of the existing ones (for example the “select” one it already uses) but we miss some handlers for new buttons here.

    • Elliot

    • October 22, 2013 at 12:31 pm

    Hi @kenno

    When you say toolbar, do you mean the left sidebar?

    If so, then this is not possible as ACF does not include this left sidebar at all.

    Sorry, hope that helps clear up your question.

    Thanks
    E

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.