Tag: editor

  • Force select2 inputs to auto-focus when clicked

    by

    I have a lot of admin pages where an input (often inside a custom field metabox) is using a select2 dropdown. On some pages, I’ll notice that when I click on the input, it doesn’t automatically focus the text input so that I can start typing, which is usually what I want. So this adds…

    Read More →

  • Display Post Images & Attachments on Edit Screen

    Display Post Images & Attachments on Edit Screen

    by

    When I’m editing a post with several images or media files attached, I sometimes like to see all the attachments on the post edit screen rather than visiting the Media Library. This snippet adds a metabox that displays a list of the attachments with links to the Edit Media admin page for each. It works…

    Read More →