• Writing a custom endpoint for the WP REST API

    Introduction

    So this was an interesting project. We use a GEL (global experience language) header and footer on nearly all of our core DCC sites. The issue we have come across is being able to maintain these easily.

    WP REST API to the rescue! To make this a reality, I created a small plugin that create some custom endpoints for the, what I call, beacon site – the site where the menu will be pulled from by multiple other sites.

    So I had a few question which led me to my current solution:

    Is there an endpoint I can use already?… Read the rest
  • Creating my first WordPress API

    I recently started a website project to encourage the communities of Devon to be more involved in the services that we deliver in their community. We have four schemes that in principle help communities to help themselves. These schemes include Snow Wardens, Road Warden, Community self help and Parish Path Partnership (P3). We want to get more residents of Devon involved in these schemes.

    One way of doing this is a postcode search of their area and a query returning which schemes are running in the area and how to get involved.

    I started this by bring a number of sources of data together.… Read the rest

  • WordPress REST API – developing a precautionary

    Back over a year ago now the WordPress team at Devon County Council started exploring a RESTful API. In WordPress 4.4 they introduced an embed extension to embed content into other website. This was the start of the API.

    WordPress 4.7 has just landed and now it has a full RESTful API built right into the core. It is now possible to display all your content by using the new endpoint routes, posts, pages, etc. This is really great, we can now do cross website querying for content using the API. This is just the tip of the iceberg of things that the API can be used for.… Read the rest

  • Waste and recycling – new site

    I’ve been working with Rhiannon and Liz from the Waste Team, to migrate waste and recycling content from the existing Livelink content management system to a new WordPress website using our default theme.

    The process

    To start, I used Google Analytics to see top page views for the existing Livelink content and, after discussions, a draft structure was provided by the Waste Team showing how they visualised the top navigation pages of the site.

    The next stage was mapping existing content, as well as streamlining and culling pages that were no longer needed. The navigation started to take shape and I chose a colour scheme for the site using browns and greens to fit in with bin colours.… Read the rest

  • The digital transformation of ‘Education and Families’

    In autumn last year I started leading on a project to redevelop DCC online information about schools and services for children and families. This covered a huge area of our website and existing information was split in two very separate sections – ‘children and families’ and ‘education and learning’ – in line with distinct council service areas.

    As a parent myself I’d always felt that that the navigation (let alone design) of the existing site wasn’t aimed at the needs of users – parents, carers and young people. Simple tasks that you would expect to be able to carry out easily, such as finding school term dates, applying for a school place or searching for childcare meant numerous clicks or wading through pages of unnecessary service jargon to find what you were looking for.… Read the rest