Jump to content

[SOLVED] Adding keyword string into url


jhulott

Recommended Posts

I am trying to display a result on a wordpress site including a Rss feed url with a variable called "productkeyword".  The "productkeyword" is a custom field in Wordpress.

 

Right now I have this :

 

$keyword=<?php echo get_post_meta($post->ID,'productkeyword',true); ?>

 

<?php echo SimplePieWP('http://www.tights4.me.uk/products/feed/rss/?s=$keyword');?>

 

But it is not quite right and I'm stumped

 

Any one got any ideas what I have done wrong?

 

Thanks

 

Jason

 

Link to comment
https://forums.phpfreaks.com/topic/182118-solved-adding-keyword-string-into-url/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.