azurecurve ClassicPress Plugins: SMTP

ClassicPress PluginsThis is part of the azurecurve ClassicPress Plugins which introduces the plugins I have available for ClassicPress.

The plugin I am going to cover in this post, is a brand new one written for ClassicPress; SMTP.

Functionality

Simple Mail Transport Protocol (SMTP) plugin will intercept the standard wp_mail and send emails via an SMTP server using PHPMAILER.

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

Download

The plugin can be downloaded via my Development site.

azurecurve ClassicPress Plugins: Maintenance Mode

ClassicPress PluginsThis is part of the azurecurve ClassicPress Plugins which introduces the plugins I have available for ClassicPress.

The plugin I am going to cover in this post, is a brand new one written for ClassicPress; Maintenance Mode.

Functionality

Enable maintenance mode to disable the front-end of your ClassicPress site for non-administrators.

Users will only see the configured message; administrators will have full access to the site, but a prominent configurable warning that maintenance mode is enabled will be displayed at the top of every page.

This plugin is multisite compatible with each site having its own settings.

Download

The plugin can be downloaded via my Development site.

azurecurve ClassicPress Plugins: Update Admin Menu

ClassicPress PluginsThis is part of the azurecurve ClassicPress Plugins which introduces the plugins I have available for ClassicPress.

The plugin I am going to cover in this post, is a brand new one written for ClassicPress; Update Admin Menu.

Functionality

Allows the reorganisation of the ClassicPress admin menu allowing you to move more often used menu entries to the top of the menu.

Download

The plugin can be downloaded via my Development site.

azurecurve ClassicPress Plugins: From Twitter

ClassicPress PluginsThis is part of the azurecurve ClassicPress Plugins which introduces the plugins I have available for ClassicPress.

The plugin I am going to cover in this post, is a brand new one written for ClassicPress; From Twitter.

Functionality

Automate the retrieval of tweets from Twitter and create posts on your ClassicPress site

From Twitter includes the following functionality;

  • Search Twitter and create tweets as posts or as a Tweet custom post type.
  • Specify the title and content in posts for retrieved tweets.
  • Choose whether to save tweet data.
  • Choose cron frequency (hourly, twice daily or daily).
  • Choose how many tweets to return each time the cron runs (max 100 as per Twitter api).
  • Choose whether Tweet images should be downloaded.

Make sure that once all the settings have been configured, you enable the cron job to run on the Cron Settings tab.

Download

The plugin can be downloaded via my Development site.

Replaced ClassicPress Cron Job Timing Out

ClassicPressBack in March I blogged about replacing the standard ClasicPress cron job with a system cron running on a schedule. The reason I did this was to improve the efficiency of my sites by having cron called on a schedule rather than every time a page was loaded.

However, I've recently been adding new functionality to my To Twitter plugin and found that scheduled tweets containing images were not working. I did some exploring and discovered that the problem was that cron jobs timeout after 30 seconds and processing one large, or several smaller, image would exceed this timeout.

I then found that an alternative method of calling cron seemed to run much faster and I was no longer having problems with the cron job timing out. This alternative method uses wget:

wget -q -O - https://{your domain}/wp-cron.php?doing_wp_cron >/dev/null 2>&1

The highlighted section should be replaced with your domain.

A re-evaluation of categories and tags in my ClassicPress blog

ClassicPressI started this blog way back in June 2011 and have ended up writing far more blog posts than I ever imagined; this year alone I have written more than 350 posts and this isn't even my highest post count.

Over the years, I've covered a number of subjects for which I have created categories and tags; in fact far, far too many of each have been created. I've been meaning to take a look at them for quite a while (I'm now actively planning what to do).

One of my fellow ClassicPress plugin authors, CodePotent/John Alarcon did a blog post on ClassicPress Categories and Tags Demystified where he takes a thorough look at categories and tags in ClassicPress and how they can best be structured, as well as some of the pitfalls and mistakes to avoid (many of which I have not avoided).

I'm going to take a good read of John's post and finalise my plan for restructuring this site to reduce the number of categories and tags in use, which will hopefully simplify navigation and make things easier to find.

With over 2,300 posts, and several hundred new ones being added every year, I'm not sure how much I can simplify things, but I'm still pretty sure I can make some substantial improvements.

azurecurve ClassicPress Plugins: Events

ClassicPress PluginsThis is part of the azurecurve ClassicPress Plugins which introduces the plugins I have available for ClassicPress.

The plugin I am going to cover in this post, is a brand new one written for ClassicPress; Events.

Functionality

Events allows events such as webinars or conferences to be created via a custom post type; categories, excerpt, details, start and end dates and times and a featured image are all supported.

In the options set defaults for the widget and shortcode.

Multiple widgets can be created, each assigned to display a category; settings for title, image size and limit for number of events to list can be set per widget.

The event shortcode accepts three parameters:
* slug to select specific event.
* width to set the size of the featured image.
* height to set the size of the featured image.

Shortcode usage is [event slug="december-2021" width=150 height=150]; all parameters are optional and will use the defaults set via the settings page.

The events shortcode accepts four parameters:
* category to restrict the output to the selected category.
* width to set the size of the featured image.
* height to set the size of the featured image.
* limit to restrict the number of events to display.

Shortcode usage is [events category="webinars" width=150 height=150 limit=5]; all parameters are optional and will use the defaults set via the settings page.

Download

The plugin can be downloaded via my Development site.

azurecurve ClassicPress Plugins: Widget Announcements

ClassicPress PluginsThis is part of the azurecurve ClassicPress Plugins which introduces the plugins I have available for ClassicPress.

The plugin I am going to cover in this post, is a brand new one written for ClassicPress; Widget Announcements.

Functionality

Announce holidays, events, achievements and notable historical figures in a widget.

Announcements can be made:

  • One off
  • Monthly
  • Annually
  • Good Friday
  • Easter Sunday
  • Easter Monday
  • Monthly on the nth day (e.g. 2nd Wednesday of every month)
  • Annually on the nth day of the month (e.g. 4th Thursday of November every year)

Announcements are created as a custom post type and can have details, an image, additional text after the image and can be assigned to multiple categories. A widget can be deployed to a sidebar or other widget area and include the announcements from a category.

Download

The plugin can be downloaded via my Development site.

azurecurve ClassicPress Plugins: Snippets

ClassicPress PluginsThis is part of the azurecurve ClassicPress Plugins which introduces the plugins I have available for ClassicPress.

The plugin I am going to cover in this post, is a brand new one I've developed to make life easier by allowing the creation of snippets of HTML or other code or CSS; Snippets.

Functionality

Allows snippets of HTML, PHP, JavaScript and CSS to be created; an alternative to using a functions.php file.

Snippets can be used to create re-usable HTML or JavaScript snippets or to create PHP to add_actions or add_filters without needing to add them to the functions.php file or create a plugin.

The following types of snippet can be created:

  • HTML - can be loaded using the shortcode.
  • Internal CSS - automatically added as internal stylesheet.
  • CSS Stylesheet - automatically loaded.
  • Internal JavaScript - automatically added as internal JavaScript.
  • JavaScript File - automatically loaded.
  • PHP - can be loaded using the shortcode.
  • PHP File - automatically loaded.

Shortcode usage is either [snippet id=1013] (where the supplied id value is a snippet post_id) or [snippet slug='hello-world'].

All snippets are loaded only on the site front end; this protects the admin dashboard from white screen errors caused by badly formed PHP.

Download

The plugin can be downloaded via my Development site.

azurecurve ClassicPress Plugins: Taxonomy Order

ClassicPress PluginsThis is part of the azurecurve ClassicPress Plugins which introduces the plugins I have available for ClassicPress.

The plugin I am going to cover in this post, is a brand new one I've developed to use on two of my other sies; Taxonomy Order.

Functionality

Set display order of the category and tag taxonomies of posts.

Download

The plugin can be downloaded via my Development site.