Plugin Directory

Simple Readbag List

Author: David Artiss

You must be signed up to Readbag (http://www.readbag.com) to use this plugin.

When you sign into readbag there should be an "API" option at the top. Click on this and a window should appear - a few lines down and your API key should be listed. Take a copy of this, as it will be needed for this plugin.

To display your want Readbag list on your WordPress site you will need to insert the following code, where appropriate, into your theme…

<?php simple_readbag_list('apikey','listtype','listlimit'); ?>

Where..

apikey : This is the API key that you got from Readbag

listtype : This is the type of list you require - `U` for unread items or `R` for read items.

listlimit : The number of items to display from 1 to 20 (default is 20)

This will then display your Readbag list in an HTML list (i.e. with <li> and </li> around each entry).

An example would be...

<?php simple_readbag_list('cgrp5sdaubip6h17t1pn52fozgtmbg3bxdnosdf1qm9o9','u','5'); ?>

This would display a list of 5 unread items for the user with the specified API key.

The following is an example of how it could be used, with a function_exists check so that it doesn't cause problems if the plugin is not active...

<?php if (function_exists('simple_readbag_list')) : ?>
<h2>My Readbag List</h2>
<ul><?php simple_readbag_list('cgrp5sdaubip6h17t1pn52fozgtmbg3bxdnosdf1qm9o9','u','5'); ?></ul>
<?php endif; ?>

Download

FYI

Compatibility beta

Your Setup

Log in to vote.

The Consensus

No data

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(1 ratings)