this is a silly question, but i dont know, can anyone help me out in this
i want to echo get_post_meta()
on a url, but i am getting parse error
i am having a function, where in the between of url one field can be filled by the value of custom field
here is the code
($doc->load('http://twitter.com/statuses/user_timeline/' . . '.rss'));
the space between . .
there i want to echo the value of my get_post_meta value,
but if i write something like this
($doc->load('http://twitter.com/statuses/user_timeline/' .echo get_post_meta() . '.rss'));
i know this step is wrong, then too i tried, i get parse error
how can i echo it???
Remove the echo. In PHP, you only use echo when you want to send the result as text to the browser. If you want to use the value in PHP (like you are trying to do), then you leave out the echo and add $post->ID, ‘meta_field_you_want’, true to get_post_meta();