• Resolved 5tu

    (@5tu)


    I use wp-rss-aggregator to pull in a job vacancies rss feed to my site. When this feed is empty, due to there being no vacancies, wp-rss-aggregator displays the message “No feed items found”. Is there a way to customise this message to make it more friendly?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter 5tu

    (@5tu)

    I have found that I can change the message for all feeds by using the following in my functions.php file…

    add_filter( 'no_feed_items_found', 'my_no_feed_items_found_text' );
    function my_no_feed_items_found_text() {
    	return __( 'Sorry, there are no vacancies currently available.', 'text-domain' );
    }

    However, is there a way to display different messages for different feeds?

    Hi @5tu,

    If you’d like to, you can rewrite the whole display template and hook them into wprss_display_template filter.

    You can write a custom query to check each Feed Item is belonged to which Feed Source then display different messages for them.

    You can refer to wprss_default_display_template() function in order to how to display the feed items.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Display message when feed is empty’ is closed to new replies.