I’m using a WordPress plugin to display a Google News feed of the post’s tags.
I’m trying to put this:
<?php echo strip_tags(get_the_tag_list('','+','')); ?>
into the single quotes of the Google URI of this echo:
<?php echo do_shortcode( '[hungryfeed url="https://news.google.com/news/feeds?q='[[above function here]]'&output=rss" template="1" max_items="1"]' ); ?>
I’m not particularly proficient in PHP; can anyone advise of the best way to go about this?
Thanks!
You need to store your first code into a variable then put the variable into the url. Something like this might work