Skip to content

Commit ba3d520

Browse files
committed
add rss feed for updated initiatives
1 parent 0808f53 commit ba3d520

4 files changed

Lines changed: 42241 additions & 8585 deletions

File tree

functions.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,3 +532,12 @@ function get_words($sentence, $count = 10) {
532532
preg_match("/(?:[^\s,\.;\?\!]+(?:[\s,\.;\?\!]+|$)){0,$count}/", $sentence, $matches);
533533
return $matches[0];
534534
}
535+
536+
add_action('init', 'customRSS');
537+
function customRSS() {
538+
add_feed('last-updated-initiatives', 'get_feed_updated_initiatives');
539+
}
540+
541+
function get_feed_updated_initiatives() {
542+
get_template_part('templates/rss/updated-initiatives');
543+
}

0 commit comments

Comments
 (0)