WordPress
Wordpress as a CMS
Wordpress as a CMS
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. […]
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 […]
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 […]
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 […]
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 […]
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 […]