WordPress.org

Ready to get started?Download WordPress

Forums

b2rdf.php number of posts (4 posts)

  1. jonanhold
    Member
    Posted 10 years ago #

    I've got posts_per_rss or whatever set to 10, but for all of my RSS feeds it's only showing the current post (which is what I have it configured to show on the main page, only one post).
    Any ideas?

  2. Mike Little
    Member
    Posted 10 years ago #

    Hi jon,
    thanks for this bug reprt. I've found and fixed the problem now. The fix is committed to CVS.
    In the meantime if you want to get yours working:
    At the top of b2rdf.php add the line
    $doing_rss=1;
    before
    include('blog.header.php');
    Then in blog.header.php change the line
    $posts_per_page = get_settings('posts_per_page');
    to read:
    if ($doing_rss == 1)
    $posts_per_page=get_settings('posts_per_rss');
    if ($posts_per_page == 0)
    $posts_per_page = get_settings('posts_per_page');
    That should fix it.
    I've made the same fix in b2rss.php and b2rss2.php
    Mike

  3. jonanhold
    Member
    Posted 10 years ago #

    thanks for the quick reply, mike :)

  4. joern
    Member
    Posted 10 years ago #

    I have the posts_per_rss setting to 10 but my feeds always contends posts_per_page which is 10. Your patch Mike doesnt made a diffenrence.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.