Hello,
Actually I am looking for the code which will show me the link of attachment page of latest uploaded image or show me the id. Is it possible to get the link?
I read this but did not help me. Let me explain again..
I have my site and I created attachment page (single-attachment.php) Now I want a code which I can implement of any text or image. When user click it will take to the attachment page of the latest uploaded image. I dont want thumbnail or etc. Just want to make an hyperlink with the code.