Created: 21.03.2011 13:34
By: Sitebase (Wim Mostmans)
Email: wim@sitebase.be
Informations about Updates and New Scripts are always announced on Twitter, Facebook and LinkedIn.
With this plugin you can display news from one or more RSS or Atom feeds. The news can be displayed with one of the 4 views I've included, or you can create your own view so you can customize how the news items are shown.
Extract the zip you downloaded from codecanyon. Inside that zip you'll find a file called news-widget.zip. This is the widget file you need to install.
To do this go to Plugins > Add New, and select the Upload tab. Now upload and activate the news-widget.zip. After installation and activation you would have an extra widget in your Appearance > Widgets page:
After the installation you can drag the widget to the location were you want to place it in your theme. Configure the settings and you are ready to go. All the settings are pretty simple and for the not so obvious ones I've added a description under the field.
As source for the news items you can use RSS and Atom feeds!
The views are located in the wp-content/plugins/news-widget/views/ directory. All views end with a suffix -view.php. So if you want to make your own view create a new file or copy and paste an existing view and rename it to [name-of-choise-here]-view.php. So for example my-view.php.
Below you find a list of variable that you can use in your view:
Below you find a list of properties that you can access on the news items you find in the $entries array.
<?php echo $before_widget ?>
<?php if ( !empty( $title ) ) { echo $before_title . $title . $after_title; }; ?>
<!-- Widget Content start -->
<ul>
<?php foreach($entries as $entry): ?>
<li>
<h4><a href="<?php echo $entry->link; ?>"><?php echo $entry->title ?></a></h4>
<p><?php echo $entry->contentSnippet ?></p>
</li>
<?php endforeach; ?>
</ul>
<!-- Widget Content end -->
<?php echo $after_widget ?>
This widget has also support for shortcodes. This way you can also use it in your posts and pages. Below you find an overview of the different parameters that are possible.
Below you find an example of a shortcode:
[newswidget feed1="http://codecanyon.net/feeds/new-codecanyon-items.atom" view="basic-view" number="10" cache="60" use_ajax="true" random="true" ajax_refresh_time="20"]
I've also added an little feed button to insert and example news widget shortcode in your post. Then you can easily modify it to fit your needs.
v1.1 (29/03/2011)
* Session started notice fixed
* Some random notices fixed
* Added support for shortcodes
v1.0 (13/03/2011)
* Initial version released
Yes
Yes, you can use Atom and RSS feeds
Updates and new release of the script are free to download once you have bought this item. To download a new version you go to My Account on Codecanyon and
Right now I'm simply getting more emails and requests for support than I can manage in a timely manner. Some times I can answer emails the same day, but often it'll take me as long as a month (or longer!) to completely empty my inbox.
Before sending a support request make sure that you have done the following things:
To be able to help solve a problem quickly, please read the entries below. I'll do my best to assist you. I provide a full range of Support except:
I have released a lot of other cool and handy scripts, so make sure to checkout our other scripts. To get an overview you can take a look at our portfolio on Codecanyon.
Once again, thank you so much for purchasing this script. As I said at the beginning, I'd be glad to help you if you have any questions relating to this theme/script. No guarantees, but I'll do my best to assist.
Sitebase