Novice@PHP Posted December 27, 2010 Share Posted December 27, 2010 I've made up some new code but I have an issue with trying to figure out why it won't work. Do you see any issues with it? $rss = fetch_feed('<?php echo get_post_meta($post->ID, "linktosource", true);?>'); Thanks in advance Quote Link to comment https://forums.phpfreaks.com/topic/222730-what-will-make-this-line-of-code-work/ Share on other sites More sharing options...
gergy008 Posted December 27, 2010 Share Posted December 27, 2010 I've made up some new code but I have an issue with trying to figure out why it won't work. Do you see any issues with it? $rss = fetch_feed('<?php echo get_post_meta($post->ID, "linktosource", true);?>'); Thanks in advance $rss = fetch_feed(get_post_meta($post->ID, "linktosource", true)); # THEN WHERE YOU WANT TO HAVE THE TEXT DIESPLAYED: echo($rss); Quote Link to comment https://forums.phpfreaks.com/topic/222730-what-will-make-this-line-of-code-work/#findComment-1151789 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.