I have a wordpress page where I use custom post fields for each post containing details of the post
(one of them is URL of the source).
I call the values to the frontpage with the following code:
<?php $key = "povezava"; echo get_meta($key); ?>
I would like to get only domain from this whole URL and put the whole URL in the link.
I was looking a lot on the web and trying lots of stuff but I'm not so experienced with PHP and I have problems to figure it out.