0

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?

2

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...
}
  • this is the way indeed – janw May 31 '12 at 14:45
1

The default setting on wordpress is work for me.

Go to wordpress dashboard-> setting -> reading
There are 2 option we can choose to show how article is displayed:

For each article in a feed, show

  1. Full text
  2. Summary

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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