Forums

RSS feed for author and category posts/comments (4 posts)

  1. pandor
    Member
    Posted 2 years ago #

    Hi,
    I would like to lunch blog site for more authors (in status "author"). I imagine the structure of site as this:

    in the body of

      main page - most recent posts (as implemented)
      author page - most recent posts from SELECTED AUTHOR (found code in documentation for this)
      categories page - most recent posts from SELECTED CATEGORY (as implemented)
      post page - selected post and comments (as implemented)

    in the sidebar on all pages

      list of authors and list of categories and RSS (2.0) links according to the body content (links for most recent posts/comments from all/author/category/post, on post page of course only for comments)

    By default, WP (default theme) gives post/comment feeds for ALL posts, and comment feed for selected post, I looking for php code for author and category feeds

    Thanks for help in advance

  2. pandor
    Member
    Posted 2 years ago #

    any idea?

  3. rudolf45
    Member
    Posted 2 years ago #

    WP creates automatically category feeds.
    If you use nice permalinks, it should be
    example.com/category/category-name/feed
    (I assume it works the same way for the authors, too)

  4. pandor
    Member
    Posted 2 years ago #

    Unfortunately nice permalinks not works with international versions where non-english characters appears in title, category or author name.
    At me RSS link
    for posts is http://example.com/wordpress/?feed=rss2,
    for comments http://example.com/wordpress/?feed=comments-rss2
    for posts comments http://example.com/wordpress/?feed=rss2&p=3

    Ok, at this point comes the answer...

    For author:
    http://example.com/wordpress/?feed=rss2&author=2
    For category:
    http://example.com/wordpress/?feed=rss2&author=3

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags