Support » Plugin: WP RSS Aggregator » RSS Source domain names are missing from entry links

  • Resolved kylechapin

    (@kylechapin)


    I have installed the plugin RSS Aggregator and Im having trouble with one of my feeds.
    The feed source is missing the domain the link originates from.
    i.e. instead of “www.example.com/entries/entry1” the feed only shows “/entries/entry1”.

    So of course when you click on the link it doesn’t work. When you click on the link, it appends this “/entries/entry1” to my websites domain, “www.mydomain.com/entries/entry1”.

    Is there any way I can modify the permalink so the links work in the feed?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Eric Gunawan

    (@erricgunawan)

    Hi @kylechapin,

    You can try to use this filter for that:

    add_filter( 'wprss_item_title', 'my_custom_item_link', 10, 4 );
    	
    function my_custom_item_link( $item_title, $feed_item_title_link, $feed_item_title, $title_link_general_setting ) {
    	
    	// put the conditional here
    	// you might need to adjust the condition to suit your need
    	if ( strpos( $feed_item_title_link, 'front' ) ) {
    		
    		$feed_item_title_link = 'www.example.com' . $feed_item_title_link;
    	
    		$item_title = wprss_link_display( $feed_item_title_link, $feed_item_title, $title_link_general_setting );	
    	}
    	
    	return $item_title;
    }

    Please let us know if this works for you.

    Hi Eric,

    Thank you for your responses. Forgive me because I am a newbie to WordPress and I don’t know where I’m supposed to put this code.
    I think I am supposed edit the plugin and put the code in one of the code files and update.

    I tried putting this code in file wp-rss-aggregator/wp-rss-aggregator.php, within the function within the function starting with this line:
    add_filter(‘wprss_diag_tester_sources’, function ($event) {

    I also tried putting the code outside the function. No luck with either. Where should I put it? Am I supposed to modify the code?

    • This reply was modified 2 months, 4 weeks ago by  kylechapin.
    Plugin Support Eric Gunawan

    (@erricgunawan)

    Hi @kylechapin,

    Sorry for not being clear before.

    Please do not modify any files within the Core plugin directory, as they’ll be removed when it gets updated.

    To add the filter we gave you before to your site, you can follow this guide instead.

    If you have made any changes to the plugins files, we recommend removing them all to avoid any potential errors.

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