Hi I want to get the post ID from the post selected in the insert/edit link button.
I would normally do:
<a data-id="<?php echo $post->ID; ?>" href="<?php the_permalink();?>"> Sample page link </a>
But whenever the user adds the links from the tinymce content editor all they get is the permalink, I don't know how to hook in. Can someone please point me in the right direction?