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 Answers 2

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...
}
1
  • this is the way indeed
    – janw
    May 31, 2012 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
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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