WordPress.org

Ready to get started?Download WordPress

Forums

Co-Authors Plus
[resolved] How to get the RSS Feed for a CoAuthor ? (7 posts)

  1. kuching
    Member
    Posted 2 years ago #

    I'm using CoAuthors Plus plugin and I wonder if there's a way to have a CoAuthor RSS Feed, with all the posts and content that (co)author contributed to create

    WordPress has author RSS Feed, but what if a user is a CoAuthor only?

    thanks

    http://wordpress.org/extend/plugins/co-authors-plus/

  2. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 2 years ago #

    What's the co-authors profile page? You should be able to get a feed of their posts (authored and co-authored) by appending /feed/

  3. kuching
    Member
    Posted 2 years ago #

    ah ok... it appears to work, although I disabled the author profile pages since I'm using BuddyPress and created a special Buddypress page in their profiles with a list of all of co-authored posts (excluding certain post types). I need to think of a way to customize that list into a feed. Some posts belonging to certain post types are excluded (like... I don't need to list wordpress pages and other content). Any advices on how to achieve that? Thank you!

  4. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 2 years ago #

    You'll want to modify the query for the feed. Try checking out the 'pre_get_posts'. Basically, you just want to modify the main query object for the feed to also include all of the coauthors posts. You can access these easily because coauthors uses the 'author' taxonomy and the user_login is the slug.

  5. kuching
    Member
    Posted 2 years ago #

    ok thanks will give a try

  6. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 1 year ago #

    Did this work out for you? Mind posting your code in a pastebin and sharing here for the next person?

  7. kuching
    Member
    Posted 1 year ago #

    Hi Daniel,

    I haven't worked at this yet - I just got the wordpress codex reference for pre_get_posts sitting in my bookmarks at the moment :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic