I'm working on a showcase site with ratings. I'd like to add a description of each site automatically. This can be done with get_meta_tags() function. And as far as I know, I'm not able to use PHP in custom fields(?)
It's easy when there's only one certain website to fetch the description from:
<?php $tags = get_meta_tags('http://www.example.com/');
echo $tags['description']; ?>
But in this case I want to fetch them automatically from each site and the function is placed within my single.php file.
I've got a custom field named URL with a website url as value (I use it for other purposes too). So, I would like to have the get_meta_tags function grab the website's url from the custom field.
I'm a rookie with anything concerning PHP but I've tried several ways to achieve my goal. I've read a few tutorials and manuals but each of them have examples only of fetching the tags from one specific url.
Is there a way to run some function inside the get_meta_tags() function or do I need to go even further somehow?