Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have a custom field intended for a rss feed. It is simpley a URL in the field, how do I take that url entered and output it into the correct section in the template?

<?php include_once(ABSPATH . WPINC . '/rss.php');wp_rss('<?php echo get_post_meta($post->ID, 'wpcf-rss', true); ?>', 3); ?>

Does not work

share|improve this question
    
Please, try to formulate your Question in terms of code, only this description is not enough to provide an answer. –  brasofilo Mar 5 '13 at 22:20
add comment

1 Answer

You might be able to put this into your template wherever you want to display the RSS custom field:

get_post_meta($post->ID, 'custom field name', true);
share|improve this answer
    
This is based on the WordPress codex: codex.wordpress.org/Custom_Fields –  NW Tech Mar 5 '13 at 21:50
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.