1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.4 How to make Feeder pull only 1 post instead of 5?

Discussion in 'XenForo Questions and Support' started by XFuser, Apr 17, 2015.

  1. XFuser

    XFuser Active Member

    How can you make the RSS Feeder pull only 1 post instead of 5 every time it runs?
     
  2. XFuser

    XFuser Active Member

    How can you make the RSS Feeder pull only 1 post instead of 5 every time it runs?
     
  3. Brogan

    Brogan XenForo Moderator Staff Member

    It would require custom development.
     
  4. Tracy Perry

    Tracy Perry Well-Known Member

    Or you can edit /library/XenForo/Model/Feed.php and change

    Code:
            /**
             * Maximum number of entries to be fetched per-feed per-import.
             *
             * @var integer
             */
            protected static $_maxEntriesPerImport = 5;
    to
    Code:
            /**
             * Maximum number of entries to be fetched per-feed per-import.
             *
             * @var integer
             */
            protected static $_maxEntriesPerImport = 1;
    Or at least that is what we did on another site that he was wanting less than 5 pulled in (he was wanting 3).

    Of course, this must be redone each time you upgrade the XenForo script.
     
    ForestForTrees likes this.

Share This Page