How to run WordPress on Azure App Service Linux with NGINX
I recently had to start moving my various WordPress sites from the standard App Service to a standard app service on Linux, using NGINX. However, this does not work out of the box. After much googling and experimentation I came across this extremely well written blog post on the topic. Basically just follow those instructions […]
Something to watch for on WordPress shortcodes
The first inclination is to create a shortcode that will look like [MyShortCode]My Only Parameter[/MyShortCode], which would look like this function MyShortCode_func($content = null){ //————-stuff happens return $processedContent; } However, if you want to have parameters = you must have the $atts parameter in the function, even if it is not used. The proper function […]
How to fix 502 Errors in WordPress on Windows Azure Websites
For the past month I’ve been getting the following error 502 – Web server received an invalid response while acting as a gateway or proxy server.There is a problem with the page you are looking for, and it cannot be displayed. When the Web server (while acting as a gateway or proxy) contacted the upstream […]
Updating for the sole purpose of the Google Author Plugin
I apologize to my regular readers for this empty post. I need to update to get the Google Author plugin to be recognized by Google
How to install wordpress in a subdirectory of a site with an existing .htaccess file
This happened to me whilst working on a pre-existing site recently. The Problem You are trying to install WordPress onto a subdirectory of an existing site that uses the .htaccess files for routing. When you try to add in the changes needed for WordPress to work you break the existing site. The Cause WordPress .htaccess […]
The case of the disappearing WordPress widgets
A silly one this time The Problem I was recently working on someone else’s WordPress theme that made extensive use of WordPress Widgets and the new dynamic sidebar feature. I was able to recreate the widgets (there was a working staging site) but the on the production site the widgets did not appear. What to […]
How to order a custom WordPress Post Type by a custom numeric field
So, you need to order a custom WordPress Post Type by a custom numeric field – how? The Problem You have a WordPress custom post types, and you need to order by a custom numeric field – how do you do that? The Cause You would think that it would be relatively simple, for example the below […]
How to fix problems with WordPress taxonomy permalinks
The Problem You are attempting to use WordPress taxonomies to create custom permalinks, and all you get are 404 errors. To clarify, I was trying to use the taxonomies purely to maniplate custom page types and their permalinks, to create something like https://Domain.com/SummerCrops/Tomatos where SummerCrops is my custom taxonomy, and Tomatos is a page name […]
How to fix problems with WordPress Front Pages not showing the proper template
The Problem You are using a custom post type as the front page, and for no obvious reason it will not display in the custom template your wrote The Cause The front page always uses the font-page.php template in your theme, and if front-page.php is not present, then it will use the page.php template file. […]
Tribal maintenance goes farther with SharePress
As it turns out, the free version does not do what I thought it did. Retracted. For some reason I decided to engage more directly with my very few Facebook fans and after a bit of googling, I opted to use SharePress by Fat Panda. Thus far, I am very impressed, and it joins the […]