I have a custom field that I use for posting iframe content.
<?php echo get_post_meta( get_the_ID(), 'Embed_Code', true ) ?>
What I’m trying to do is grab the src of a <iframe> and swap it into a href. I’ve done this successfully with Jquery, but it’s slowing down my page because:
-I have multiple tags doing this.
-It’s also moving elements around the page and placing them back to where they’re suppose to be, due to the iframe loading and then getting removed.
How would I do this with php, so I don’t get loading problems, or slow down the page loading down?
*note what is being posted into the custom field is not in my control.
Thanks as always!