Media added with shortcodes not "linked" with post

by Shah   Last Updated January 14, 2018 12:08 PM

When you add Mediafiles (images, galleries, videos etc.) with the "Add Media Screen" in "Post Edit Screen" then the Attachment will get linked(parent_id) to the post/page.

I don't know if this is done while you select the Mediafile from the Library or after saving the post?

The problem is, I have created a shortcode which adds media to my post but those Mediafiles do not get linked to the post.

Has anyone an idea how to fix that?


Related Questions

How to make shortcode which returns HTML?

Updated May 17, 2015 21:03 PM

TinyMCE Custom Styles or Shortcode Components?

Updated May 04, 2015 21:03 PM

Edit dynamic page through admin dashboard

Updated September 14, 2017 03:08 AM