Site icon Hip-Hop Website Design and Development

get photographs solely connected from edit put up web page

I’ve developed a customized wordpress panel with a customized front-end lately. In single put up pages there’s a slider. I show the results of get_attached_media( ‘picture’ ) operate as the photographs of slider.

I instructed editor that add solely the photographs you want to see in slider to put up from edit put up web page, add different photographs from the media hyperlink on the aspect menu. The issue is that, if the consumer uploads a picture from media display, then inserts it to content material of the put up, the picture occurs to be connected to that put up since it isn’t connected to any put up.

How can I forestall this? Or is there a approach to present photographs that are uploaded from edit put up web page?