WordPress 2.8.4, Simple Pie Plugin 2.2.1
I’m having this:
<?php echo SimplePieWP(
array(
'http://gdata.youtube.com/feeds/base/videos?q=fifa10%20trailer&client=ytapi-youtube-search&alt=rss&v=2'
),
array(
'items' => '1')
); ?>
Instead of fifa10
I’d like to have the value of a custom field with the key name-of-game
in there.
How can I do this?
You get the value of a WordPress custom field with
get_post_meta()
:To include it in your function call to SimplePieWP, use string concatenation with
.
(dot):