WordPress.org

Forums

How to get the attachment id of each post (1 post)

  1. rashmiranjan
    Member
    Posted 6 years ago #

    Hi,

    I want to the get the metadata of the image attachment for each post.

    I am not able to pass the right attachment id. If i am hardcoding the attachment id, i am getting the information.

    What function/variable shld i refer to get the attachment id of the attachment in the post?

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic