Skip to content

Instantly share code, notes, and snippets.

View sotospeak's full-sized avatar

Carlo Bazzo sotospeak

View GitHub Profile
@sotospeak
sotospeak / wp_rss_feed_add_to_post_w_thumbs.php
Last active December 1, 2019 12:24
Adding a feed to WP posts, scraping the featured images when thumbnails missing from feed
//put your feed in post/page with
//[add_rss url = "my feed uri"
//items = "number of items to retrieve"
//title = "title for"
//show_date = "show date or not"
//show_author "show author or not"
//show_summary = "whether to show a summary of each item"]
//declare the function
//from the original wp_widget_rss_output
//bit customized
@sotospeak
sotospeak / wp_rss_feed_add_to_post.php
Last active November 14, 2015 08:40
Shortcode version of the wp core function, just a bit customized. Put this code anywhere in function.php
//put your feed in post/page with
//[add_rss url = "my feed uri"
//items = "number of items to retrieve"
//title = "title for"
//show_date = "show date or not"
//show_author "show author or not"
//show_summary = "whether to show a summary of each item"]
//declare the function
//from the original wp_widget_rss_output
//bit customized