Creating a Child Theme in WordPress – alternate methods

Creating a Child Theme in WordPress - alternate methods

In a previous post I elucidated the tried and trusted method of creating a child theme in WordPress.  In this article we are not going into the “why” of a child-theme, only the how. The manual way Again, the purpose is as much for me to not forget, as it is about to be generally […]

Redirect WordPress 404 Not Found Page to Homepage

Redirect WordPress 404 Not Found Page to Homepage

Wow you say .. not again ? I know this is a tired old subject, but I felt I needed to put my 2cents in.  The trigger for this was a redesign of the M3PCS website.   The site has existed for a number of years, and its pages are indexed by search engines.  So, if anybody […]

Making a Site Specific WordPress Plugin

Making a Site Specific WordPress Plugin

Often we need certain functions to exist, or the site to behave a certain way.  Rather than adding code to the theme’s functions.php file, we create a site specific plugin. Here is my template for this.  As an example, I will use my  “wplab” playground site.  We create a folder <mysite>-site-plugin.  We created the wplab-site-plugin folder. […]

Front End Login WordPress Plugin – Model View Controller (MVC) – Tutorial – Part Two

Front End Login WordPress Plugin – Model View Controller (MVC) – Tutorial – Part Two

In Part One we introduced the Model-View-Controller (MVC) paradigm and used it to develop the “Front-End-Registration-Login” plugin.  The development was not complete as we only implemented the login/logout functionality.  In this part we will add the following: Change Password Oops .. I forgot my Password Register This functionality will be added using the MVC scaffolding we […]

Front End Login Wordpress Plugin - Model View Controller (MVC) - Tutorial - Part One

Front End Login WordPress Plugin – Model View Controller (MVC) – Tutorial – Part One

A lot has been written about the Model-View-Controller (MVC) paradigm over the years. Let me address the subject specifically in the context of WordPress plugin development.  This is Part One of the mini-series.  It covers the “scaffolding” for MVC and the login / logout functionality.  Part Two covers user registration, lost password etc. Setting the scene When […]

Ha! Hold My Brain; Be Still My Beating Heart - or - WordPress Heartbeat Troubles

Ha! Hold My Brain; Be Still My Beating Heart – or – WordPress Heartbeat Troubles

My Beating Heart .. Sir, this audacity! .. Oh, my heart, my beating heart! This unwarrantable presumption on the part of a common website! With credits to Gilbert & Sullivan – HMS Pinafore The WordPress Heartbeat was introduced in WP 3.6 to help users when editing Posts, Pages or doing other administrative functions.  When a web […]

WordPress Admin Access Plugin is on GitHub

WordPress Admin Access Plugin is on GitHub

What this is about A while back I started developing plugins for WordPress.  Often, this was just for my own use.  Back in January, I released a plugin, which we use at M3PCS, when we use WordPress as a CMS for simple websites.  To briefly restate the purpose: When using WordPress as a CMS, and […]

Error establishing a database connection

Error establishing a database connection

That was the message when I went to my home page.  This site is implemented using WordPress.  Since I had not changed a thing, and as the site was working fine a couple of hours before this, a mild panic set in.  A quick check of the wp-config.php file and an SSH login to the […]

Using WordPress for Simple Websites - Admin Access Plugin

Using WordPress for Simple Websites – Admin Access Plugin

Rational When using WordPress as a CMS, and creating simple websites for clients, one of the concerns is to allow administrative access to us as developers, while at the same time preventing any such access to visitors. One solution is a plugin which accomplishes two things: When not logged in, it prevents any and all […]

Creating a Child Theme in WordPress

Creating a Child Theme in WordPress

I keep forgetting how to do this .. so here is my aide-memoire. A child theme is configured like a theme, which means a theme directory, and a style.css file in it.  Template files and functions.php are not required in this directory, as they will be picked up from the parent theme.  The one distinguishing line in […]