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'm making a custom RSS feed where I want the full article to display. The problem is that when I use the_content() to output the article, it will only show the excerpt if there is a 'more' tag in that article. How do I force the_content() to output the full article, or is there another function that will achieve this?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Setting the $more variable to 0 seem to solve the problem for me. I put the following at the top of my function which output the RSS feed:

function outputRSS(){
    global $more;
    $more = 0;
    //Output my RSS below...
}
share|improve this answer
    
this is the way indeed –  janw May 31 '12 at 14:45

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.