Skip to content


Repository files navigation



Tide heights and times for UK ports and harbours


uk-tides displays tide times and heights for a particular location in the UK. The information that is displayed is obtained from the RSS feed for (eg ) or ( eg ). The data is cached until midnight.

This plugin implements a block called UK tides ( uk-tides/uk-tides ).

  • It's much easier to use than the shortcode.
  • It uses the functionality that was previously implemented as the [bw_tides] shortcode.
  • The block is not dependent upon the oik plugin.

The syntax for the [bw_tides] shortcode is:

[bw_tides tideurl="|other - RSS feed URL for location" store="1|store key - unique key for caching result"]

Examples: [bw_tides] with no parameters will display the tide times and heights for Chichester Harbour Entrance. The information will be cached in store=1 until midnight.

[bw_tides store=bw_tides_pompey tideurl=""] will display the tide times and heights obtained from and cache the result in a store named 'bw_tides_pompey'

  • Note: Using the store parameter allows you to display tide time and height information for more than one location.

Examples: If you prefer you can use as the source for tidal information.

[bw_tides tideurl=""]

Frequently Asked Questions


  1. Upload the contents of the uk-tides plugin to the `/wp-content/plugins/uk-tides' directory
  2. Activate the uk-tides plugin through the 'Plugins' menu in WordPress
  3. Whenever you want to produce UK Tide times and heights for the current date use the UK tides block.

How do I find the value for tideurl?

  • Note: This is not necessary when you use the block, the tideurl is automatically created based on your selection of Site and Port.

  • Visit,

  • click on the location of your choice,

  • click on the RSS feed icon,

  • copy the URL from the feed

eg for Brighton Marina the value for tideurl is


What if I don't live in the UK?

uk-tides currently only works for the UK and Ireland since the information is obtained from or If you can point us to a resource for other locations then it should be possible to develop a very similar solution.

Isn't there some JavaScript that does something similar?

Yes. See or

You may find the output harder to (re)style.

Further reading

If you want to read more about the oik plugins then please visit the oik plugin "OIK - OIK Information Kit"


  1. Example UK tides block - for Chichester Harbour (Entrance) from
  2. Sample output for Portsmouth, Hants - from
  3. Sample output for Portsmouth, Hants - from

Upgrade Notice


Update for support for PHP 8.1 and PHP 8.2



  • Changed: Updated wp-scripts #23
  • Changed: Support PHP 8.1 and PHP 8.2 #27
  • Tested: With WordPress 6.4-RC3 and WordPress Multisite
  • Tested: With Gutenberg 16.9.0
  • Tested: With PHP 8.0, PHP 8.1 and PHP 8.2
  • Tested: With PHPUnit 9.6