Images attached to a post/page in edit screen

Support General Images attached to a post/page in edit screen

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #3962
    Cristian D.Cristian D.
    Participant

    Hi,
    How I can show a Metabox with thumbnails of images attached to a post / page without adding a meta key to avoid this metabox as a custom field ?

    I need to use the default attachment "meta key" provided by WordPress, or something similar, to showing in post edit screen all images attached as thumbnail, and after, use this images attached in a post/page template to use a query with pagination

    I Appreciate any help
    Thank you
    Best Regards

    #3964
    Anh TranAnh Tran
    Keymaster

    Hi Cristian,

    To show all attached images of the being edited post, you need to write custom code to get them and put them in the custom_html field. This field doesn't have any input and don't save anything to the database. You can use it just to show the content you want.

    Here is the sample code:

    http://pastebin.com/H7vqqx26

    You might need to alter it and add more CSS 😉

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