June 14, 2012 at 5:36 AM
—
Website Sorcery
There are a number of RSS readers available but you'll likely spend time trying to find one that works for you. The best I've come across is the WP Simple RSS Feed Reader which currently has a 5 star rating. Download this plug-in and activate it.
Visit news.google.com and enter your desired search keywords, such as "Good Drugs". Scroll to the bottom of the results and click on the RSS icon. Copy the URL which you will use in your short code.
Use the following shortcode to create your RSS feed in either a Page or a Post:
[simple-rss feed="{feed url}" limit={feed count}]
For example:
[simple-rss feed="https://news.google.com/news/feeds?hl=en&gl=us&q=georgie+thompson&um=1&ie=UTF-8&output=rss" limit=10]
That's it, you're done!
Oh, hold on...
I wasn't keen on the hyperlink and hr before the news feed. I removed this fairly easily by going to the Plugins page and clicking the Edit link for WP Simple RSS Feed Reader. Navigate to the wp_simple_rss_feed_reader function and remove the following line of code:
$return = "<a href=\"".$xml->channel->link."\" class=\"wp-simple-rss-feed-url\" target=\"_blank\">".$xml->channel->link."</a><hr />";
Save the plugin code.
Your code will look roughly like this:
function wp_simple_rss_feed_reader($url,$limit=50){
$url = html_entity_decode($url);
$xml = simplexml_load_file($url);
$return .= "<ul class=\"wp-simple-rss-list\">";
$i=0;
... etc ...
April 24, 2012 at 2:14 AM
—
Website Sorcery
For those of you using the Twenty Eleven theme for WordPress and wish to remove the "Proudly powered by WordPress" link in the footer, then this is how:
- In the admin panel, select Appearance -> Editor.
- Select footer.php from the Templates column.
- Search for the div with the class id site-generator (<div id="site-generator">) and remove the following code:
<?php do_action( 'twentyeleven_credits' ); ?>
<a href="<?php echo esc_url( __( 'http://wordpress.org/', 'twentyeleven' ) ); ?>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentyeleven' ); ?>" rel="generator"><?php printf( __( 'Proudly powered by %s', 'twentyeleven' ), 'WordPress' ); ?></a>
- Click the Update File button.
Job done!
If this has helped you, please take the time to like/share this page. Thanks.