function generate_rss_feed() { // Get all post categories $categories = get_categories(); // Create a new SimplePie object for the RSS feed $feed = new SimplePie(); $feed->set_feed_url(home_url('/rss')); $feed->set_title(get_bloginfo('name')); $feed->set_link(home_url()); $feed->set_description(get_bloginfo('description')); // Loop through each category and add posts to the feed foreach ($categories as $category) { // Only include published posts in the last 30 days $posts = get_posts([ 'post_type' => ['post'], 'post_status' => 'publish', 'numberposts' => 1000, // Adjust as needed 'category' => $category->term_id, 'date_query' => [ [ 'column' => 'post_date', 'after' => '30 days ago' ] ] ]); // Add items to the feed foreach ($posts as $post) { $item = new SimplePieItem(); $item->set_title($post->post_title); $item->set_link(get_permalink($post)); $item->set_content(apply_filters('the_content', $post->post_content)); $item->set_date(get_the_date(DATE_RSS, $post)); $feed->add_item($item); } } // Output the RSS feed $feed->handle_content_type(); exit; }{"id":807636,"date":"2016-11-16T09:23:33","date_gmt":"2016-11-16T16:23:33","guid":{"rendered":"https:\/\/radiofacts.com\/?p=176066"},"modified":"2016-11-16T09:23:33","modified_gmt":"2016-11-16T16:23:33","slug":"cbs-radio-appoints-cfo","status":"publish","type":"post","link":"https:\/\/theindustry.biz\/cbs-radio-appoints-cfo\/","title":{"rendered":"CBS Radio Appoints New CFO"},"content":{"rendered":"

Radio Facts:<\/strong> Radio Facts: \"mattsiegel\"CBS RADIO has appointed Matthew Siegel as its Chief Financial Officer, effective Monday, November 14. Siegel will direct and oversee all financial functions of the business, including treasury, investor relations, financial planning, corporate accounting and risk management. Siegel will be based at CBS RADIO\u2019s New York headquarters and report to President, Andre Fernandez.<\/p>\n

\u201cAs we prepare to separate from our parent company \u2013 one of the most exciting and impactful events in CBS RADIO\u2019s history \u2013 it\u2019s more important than ever that we remain competitive and consistently deliver value to our key stakeholders,\u201d said Fernandez. \u201cMatt\u2019s broad financial experience serving top media organizations will help position us for continued success.\u201d<\/p>\n

Siegel added, \u201cI am excited to join CBS RADIO and work closely with Andre and the management team to transition the business into a publicly held company we can all be proud of.\u201d<\/p>\n

Siegel is a senior financial executive with over 25 years of experience working for major corporations. Most recently he served as the co-CFO and treasurer of Time Warner Cable (TWC) through the merger period with Charter Communications. Prior to that, he was the senior vice president and treasurer of TWC<\/strong> since just prior to TWC\u2019s separation from Time Warner. During the regulatory review of the merger between TWC<\/strong> and Comcast, which was subsequently terminated, Siegel was designated chief financial officer of the intended cable company spin-off, GreatLand Connections.<\/p>\n

Prior to TWC, Siegel worked at Time Warner Inc. as vice president and assistant treasurer. Earlier in his career he held leadership positions in finance at Insight Communications and at Seagram. Siegel received an MBA from the University of Chicago\u2019s Booth School of Business and a bachelor\u2019s degree from the Wharton School at the University of Pennsylvania.<\/p>\n","protected":false},"excerpt":{"rendered":"

…<\/p>\n","protected":false},"author":59,"featured_media":176067,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"tdm_status":"","tdm_grid_status":"","_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[18844],"tags":[27580,37949,18147,10135,37692,231,40889,40523,26667],"class_list":{"0":"post-807636","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-radio-and-music-industry-news","8":"tag-cable","9":"tag-cbs-radio","10":"tag-chief-financial-officer","11":"tag-corporations","12":"tag-mba","13":"tag-radio","14":"tag-radio-jobs","15":"tag-twc","16":"tag-value"},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/theindustry.biz\/wp-json\/wp\/v2\/posts\/807636","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theindustry.biz\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/theindustry.biz\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/theindustry.biz\/wp-json\/wp\/v2\/users\/59"}],"replies":[{"embeddable":true,"href":"https:\/\/theindustry.biz\/wp-json\/wp\/v2\/comments?post=807636"}],"version-history":[{"count":0,"href":"https:\/\/theindustry.biz\/wp-json\/wp\/v2\/posts\/807636\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/theindustry.biz\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/theindustry.biz\/wp-json\/wp\/v2\/media?parent=807636"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/theindustry.biz\/wp-json\/wp\/v2\/categories?post=807636"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/theindustry.biz\/wp-json\/wp\/v2\/tags?post=807636"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}