• Blog
  • Photos
  • Info

Two new plugins published for WordPress

Published on 21st August 2015

I have worked on projects based around open source technology for years. Beginning in the early 2000s with image editing software and subsequently with website content management systems like WordPress (since 2003) and TYPO3 (since 2011).

The biggest benefit of open source technology is that anyone can take a piece of software and improve upon it, then feed the improvements back to the original author (or authors). This means that for larger projects, dozens of people are all working on software which they appreciate and want to support, to make it better. WordPress has been developed in this way for over twelve years and TYPO3 has been an open-source solution since 2001.

I’ve been lax with feeding things back in to the open source community for WordPress and TYPO3 until this year. Although I’ve coded plenty of system extensions and plugins, most of them have been directly for clients or for my own use.

I became an occasional contributor to the TYPO3 documentation service since early this year, but I wanted to take my experience as a programmer a step further too.

WordPress development work – on my own website and on client projects – has changed tack this year. I now focus on making individual features more portable and implemented as plugins, instead of being deeply embedded in Theme functionality.

This offers a lot of gains, such as using the same plugins in multiple projects, working in a more modular fashion, and from now on, allowing me to publish individual functionality as public plugins.

I finally got around to reading the submission details for the official WordPress Plugin directory this week and submitted a couple of simple plugins. They have now been approved and are available for free to anyone using WordPress.

Extend Post Data

A simple plugin which hooks into database queries on the $post database table. It makes an additional database request via the get_post_meta function and adds a sub-object $post->metadata to the $post object containing all linked post meta data. This makes output much easier and avoids the requirement for multiple get_post_meta calls in your template files.

wordpress.org/plugins/mhm-extend-postdata

Inline version numbering for WordPress

This plugin removes the query parameter-based version numbering from linked CSS and JavaScript files in the WordPress HTML output and replaces it with inline version numbering: myscript.100.js instead of myscript.js?v=100. The advantage of this method is that it improves browser caching, as some browsers handle file requests containing query parameters less efficiently than others. (This plugin automatically modifies the Apache .htaccess file so that the file name alias with an inline version number is recognized.)

wordpress.org/plugins/mhm-inlineversioning

Topics

community, extension, get_post_meta, inline versioning for wordpress, Modular development and design, open source, plugin, The internet, TYPO3, versioning, WordPress, WordPress plugin

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Latest blog posts

  • Lac Léman at sunset

    The view from Eni Lavaux

    Published on 21st February 2021
    Finally photographing a long-awaited evening view across Lausanne, thanks to getting the right angle with my drone.
    Read more
  • Stac Pollaidh

    The pinnacle of the pool river

    Published on 20th February 2021
    Hiking in the wild, remote and dramatic landscape of the north-west of Scotland last autumn.
    Read more
  • Unter dem Birg to Engstligenalp

    Unter dem Birg to Engstligenalp

    Published on 20th February 2021
    Time-lapse sequence of the cable car ride from the valley station to the mountain station.
    Read more
  • Block pattern example from the WordPress Twenty Twenty One Theme

    Easier Block Patterns using Template Parts

    Published on 16th February 2021
    Using register_block_pattern in WordPress can be a pain, as you need to manipulate the HTML in your code. Here’s a much less tiresome solution.
    Read more
  • Sahara dust in the air at Fanel

    Saharan dust in the air

    Published on 8th February 2021
    Almost every year, prevailing winds bring fine dust and sand from the Sahara desert to southern Europe.
    Read more
  • Overlapping elements with CSS grid

    Published on 18th January 2021
    Using CSS Grid to overlap two rows and allow a content image to “break out” of the text container.
    Read more
  • Squeaky snow

    Squeaky snow

    Published on 9th January 2021
    When the temperature of snow is above -10°C, it melts slightly when you crush it by walking on it. At temperatures below -10°C, the ice crystals are crushed, which makes a squeaking sound.
    Read more
  • Hallwil, Switzerland

    Lake Hallwil

    Published on 3rd January 2021
    Going somewhere new and exploring the lake shore at Seengen, near Hallwil.
    Read more
All blog posts

Website proudly powered by WordPress, running the Theme Picard,
which is based on original work by myself and my friends at our WordPress agency Say Hello.

This website is © 2004 – 2021 Mark Howells-Mead

Webcams ~ Imprint ~ Privacy policy ~ Contact

Αυτά μου φαίνονται κινέζικα

  • Blog
    • WordPress
  • About Mark Howells-Mead
    • The A to Z of Mark
  • Photography
    • Complete photo archive
    • Albums
    • Aisles
    • Aerial (drone) photography
    • Big Wide World
    • In Public
    • Mirror Project
    • One Frame Movie
    • The Red Makes It
  • Webcams