Custom Fields
Re-Envisioned
Support General Images attached to a post/page in edit screen

This topic contains 1 reply, has 2 voices, and was last updated by  Anh Tran 3 years, 2 months ago.

  • Creator
    Topic
  • #3962

    Cristian A.
    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

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #3964

    Anh 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 1 replies (of 1 total)

You must be logged in to reply to this topic.