ClassicPress Plugins Available From azurecurve | Development in 2023: Nearby

ClassicPressIn this series of articles, I am going to introduce each of the plugins I have developed for ClassicPress, a hard-fork of WordPress, which was originally created to provide an alternative, yet compatible, CMS without the Gutenberg block editor.

The 30th plugin is Nearby.

Nearby creates a table of nearby locations (pages) based on GPS co-ordinates.

Nearby integrates with the following https://development.azurecurve.co.uk/classicpress-plugins/’>azurecurve | Development plugins:

  • Flags allows a location to be set for a page; this will display the location flag next to the location name in the table of nearby attractions.
  • Icons allows an icon to be displayed next to a nearby location which has an entry on a timeline (requires integration with Timelines to be enabled).
  • Timelines allows a character (such as *) to be displayed next to a nearby location which has an entry on a timeline.
  • Toggle Show/Hide allows the table of nearby locations to be enclosed with a toggle.

Apply the

[nearby]

shortcode to a page with co-ordinates and nearby locations (pages with co-ordinates), based on the settings, will be displayed in a table.

The shortcode accepts two parameters:

  • type to limit nearby attractions (multiple types can be provided in comma separated string).
  • title to override the default toggle title.

Example shortcode usage:

[nearby type="Distilleries" title="Nearby Distilleries"]

Examples of this plugin in action:

This plugin is multisite compatible; each site will need settings to be configured in the admin dashboard.

Continue reading “ClassicPress Plugins Available From azurecurve | Development in 2023: Nearby”