I want to get news_keywords
from this meta
:
<meta name="news_keywords" content="bla, bla, bla tag">
<meta property="og:title" content="title example">
i try with simple code and doesn't work
$tags = get_meta_tags($link);
echo $tags['news_keywords'];
That's a minor mistake. Change it to:
echo $tags['news_keywords'];
Outputs:
bla, bla, bla tag
You are echo-ing a wrong tag, try echo $tags['news_keywords']
not $tag['news_keywords']