Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • George Curcio
    Participant

    Hi,

    Unless I am missing it, I do not see a way to add categories. Am I missing it?

    For instance, I want to use six RSS feeds that are only about baseball (same example for other sports). Is there a way to tag the RSS links as “Baseball” or is that not possible?

    Thanks. BTW, the site is at https://slatsonsports.com/

    Hi George,

    Super RSS Reader supports “WordPress hooks” using which you can customize the output text.

    Since you want to add custom text to the bottom of the feed description, you can try that. It is written in PHP.

    https://www.aakashweb.com/docs/super-rss-reader/actions-filters/#srr_mod_item_html

    Below is an example for your use case.

        function my_srr_modifier( $html, $feed_url, $feed_item ){
            
            $tag = '';
            if( $feed_url == 'my base ball rss feed url 1' || $feed_url == 'my base ball rss feed url 2' ){
                $tag = 'Baseball';
            }
            
            if( $feed_url == 'my NFL rss feed url 1' || $feed_url == 'my NFL rss feed url 2' ){
                $tag = 'NFL';
            }
            
            $html[ 'after' ] = $html[ 'after' ] . ' <p>' . $tag . '</p>';
            
            return $html;
        }
        
        add_filter( 'srr_mod_item_html', 'my_srr_modifier', 10, 3 );

    Please expand over this example as needed.

    Thanks,
    Aakash

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Subscribe to our Newsletter

Get updates on the WordPress plugins, tips and tricks to enhance your WordPress experience. No spam. View newsletter

By using this website, you agree to our Terms