I want my sidebar on my wordpress site to display content relevant for that posting/page rather than all of the media that is uploaded to the site displaying on every page.
I have uploaded content (PDF) under media in the dash board and have attached the media to the relevant post/page. is is possible to have this media displayed in the sidebar so that only the media that i have assigned to that post is displayed
eg: 'document A' needs to be displayed for 'posting A' and only posting A
'document B, C, and D' need to be displayed on 'page B'
when the user is viewing the post A, document A appears in the sidebar and when they click on page b the sidebar is now populated with documents B, C and D but not A
I hope i have been clear, if this involves PHP I am not very good at it so could you please be very explicit in exactly where the code needs to be placed