WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!This plugin hasn't been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

SunPress Exchange

Parse Sunshine.co.uk RSS feeds and convert the currency quoted into GBP, EUR or USD easily.

Always backup files before making any changes

  1. Upload the entire "sunpress-exchange" folder to your plugins folder

  2. Activate the plugin as normal

  3. Go to the Sunpress Exchange tab under your Options menu and change the three variables

  4. In your template file for single.php, paste <?php sunpress_exchange_block(); ?> where you want the block to appear; probably directly after <?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?>

OPTIONAL STEPS

  1. To use just one RSS feed for all your posts, in your template file for single.php, paste <?php sunpress_exchange_block('rss_feed_url'); ?> where you want the block to appear; probably directly after <?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?>. Replace rss_feed_url with the address of the RSS feed.

  2. To display a compact version of the widget, replace <?php sunpress_exchange_block(); ?> with: <?php sunpress_exchange_compact_block('', 'widget_title'); ?> or <?php sunpress_exchange_block('rss_feed_url'); ?> with <?php sunpress_exchange_compact_block('rss_feed_url', 'widget_title'); ?>. Replace rss_feed_url with the address of the RSS feed and widget_title with the name of your widget, which will be displayed above the offers on the page.

The compact version of the widget works exactly the same as the standard sized widget - it's just smaller. You can use a static RSS feed across all posts or with dynamic RSS feed URLs specified in your blog post as per normal.

The compact version is not formatted. It will use inheritted styles from your WordPress theme. You can overwrite this by adding clauses to your WordPress theme stylesheet. The output is wrapped with the class: .sunpress_exchange_compact.

EXTRA STEPS FOR SUNPRESS CONTENT TOOLS USERS

If you are running the SunPress widget, there's a couple of changes you need to make just to tidy things up:

  1. In wp-sunshine.php in your SunPress plugin folder, scroll down and find the line:
  • add_filter('the_content', array(&, 'add_meta'));

    Change this to:

  • // add_filter('the_content', array(&, 'add_meta'));

    Save then upload this file.

  1. Paste <?php hotel_rating(); ?> in single.php - usually after <div class="entry">

Requires: 2.6.0 or higher
Compatible up to: 2.7.1
Last Updated: 2009-5-20
Downloads: 1,003

Ratings

5 stars
5 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.