• Resolved webgirl40

    (@webgirl40)


    I have several posts (feed items) that need to appear on more than one feed source. Right not it will only appear on one (the first one created). Is there a way to allow certain feed items with different taxonomies to appear in more than one source?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Hendra Setiawan

    (@hendcorp)

    Hi @webgirl40

    Thank you for reaching out. To help us understand better, could you please provide your RSS feed URL and some screenshots of your feed source settings? Additionally, please also share your aggregator logs.

    Thank you, and I look forward to hearing from you soon.

    P.S: You can share your screenshots using?Snipboard?or?Imgur.

    Thread Starter webgirl40

    (@webgirl40)

    Hi Hendra. Thanks for your support: We have multiple feeds that could include the same article in the feed. So for instance, this article https://www.minesnewsroom.com/news/ice-cored-hills-arctic-could-help-us-detect-water-other-planets should be in both the “earth” rss feed as well as the “research” rss feed. But it only appears in the “earth” feed. The aggregator can’t seem to assign a feed item to more than one feed source. I’ll send over some screenshots.

    Another way to illustrate this is with this example: The feedsource “Environment” has 5 available. See Screenshot below. But, is only showing one because one of the other feed sources is already showing that same article.

    • This reply was modified 6 months, 1 week ago by webgirl40.
    • This reply was modified 6 months, 1 week ago by webgirl40.
    • This reply was modified 6 months, 1 week ago by webgirl40.
    Plugin Support Hendra Setiawan

    (@hendcorp)

    Hi @webgirl40

    Thank you for the explanation! Aggregator uses the item’s URL (by default) or the GUID (if the option is enabled) to identify duplicates. Assuming you didn’t enable the GUID option, we can “hack” Aggregator into thinking that two duplicate posts from different sources are actually different.

    We do this by adding something that is feed-specific (such as the feed’s ID) to the URL. This code snippet does just that:

    // Make duplicate item permalinks unique per feed
    add_filter('wprss_normalize_permalink', function ($permalink, $item, $feed_ID) {
        // Break down the URL into parts
        $url = parse_url($permalink);
    
        // Add feed ID to the query part
        $url['query'] = isset($url['query'])
            ? $url['query'] . '&_feed_id=' . $feed_ID
            : '_feed_id=' . $feed_ID;
    
        // Rebuild the URL and return it to WP RSS Aggregator
        return http_build_url($url);
    }, 1000, 3);

    You can add this code to your website as shown here –?How to Add Actions and Filters.

    Note: This won’t affect retroactively affect posts that were already imported. If you need this applied, you need to?delete the previously imported items?and re-import them again. However, please keep in mind that the plugin will only import items that are still available on the RSS feed.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Display same feed item to multiple feed sources’ is closed to new replies.