May 202014

One of the most basic good practice in programming, is to keep separate the code that implements the functionality of the application from the code that implements the look and feel.

This is the case of WordPress, where the design of the site is maintained in a set of template scripts that a referred as a theme. In this way, replacing the theme used in a blog with a new theme  may result in a mayor change in the look and feel of the site, with no need to change anything in the functionality implemented in the wordpress core, or in the extra functionality provided by the installed plugins.

This post explains what are the components that together conform a wordpress theme, how to start developing a theme from scratch, and how to integrate the theme in the wordpress platform.

Continue reading »

 Posted by at 11:50 am
May 192014

If you are are reading this post, you may already have realized that choosing the right theme for your blog is not an easy task. A search on Google returns a myriad of pages with wordpress themes ready to be downloaded, both free and paid ones. Indeed, we will be looking for a theme that will be appealing to us at first glance, and with a design that is well suited for the kind of content of our site. That basic requirement will allow us to discard easily most of the other themes.

But there are also other considerations that we should take into account. Otherwise, after the new theme has been put in production in our blog, we might step on an unexpected limitation, or even on bigger issues that might be difficult to solve.

This post is a basic checklist of these other aspects that should not be overlooked in choosing a WordPress theme.

Continue reading »

 Posted by at 7:00 am
Dec 112013

The base functionality of the WordPress CMS (Content Management System) can be expanded developing themes and plugins that get “hooked” at different points of the process performed by WordPress to serve incoming requests.

The functionality of a given plugin may require adding tables to the database, or performing queries to the existing tables, in a non-standard way that cannot be carried out with the functions available in the base WordPress distribution.

WordPress provides a “wpdb” class that can be used to execute any kind of query against the database, to retrieve or modify data stored in it.

This post explains how to work with the $wpdb object.

Continue reading »

 Posted by at 4:08 pm
Jan 082013

Most likely, if you are reading this page is because you own a WordPress blog that has suffered an attack by hackers.

But, if it it is a bit late now, it is worth to remember that the golden rule to avoid these issues is to keep permanently updated to the most recent version the wordpress software itself, as well as the theme used and the installed plugins.

WordPress is a platform constantly maintained and updated by many contributors that always keep in mind the safety concerns. But this is not always true for the theme and the plugins. That’s why it is convenient to make sure that the theme and the plugins used in the blog have a live user community to support them.

Other than that, even if you site has already been hacked, usually it is possible to recover from the attack, following the steps outlined in this post.

Continue reading »

 Posted by at 8:41 pm
Jan 042013

Under normal circumstances, wordpress has a procedure to reset the admin password by email. To do it, just press on the link “Lost your password?” in the login screen.

But, when things go wrong, we might experience problems with the mail service that prevents us from using this procedure. Luckily, there are other options that are explained in this post.

Continue reading »

 Posted by at 7:32 am
Dec 272012

A recent backup is the best resource we can have at our disposal to quickly recover a web site that has suffered an attack by hackers, or that has suffered any other kind of issue that has affected its functionality.

In this post we will explain the possibilities offered by the “BackupWordPress” plugin to automate the generation of backup copies of both the database and the software and static content of a WordPress site.

Continue reading »

 Posted by at 8:39 pm
Dec 162012

By default, WordPress allows the administrator of a standalone wordpress site to add raw html in a post, using the HTML editor

However, this forces the user to keep editing the whole post in the HTML editor, because as soon as the Visual Editor is selected, all the custom css and javascript is removed.

This undesired effect can be avoided by placing the css and javascript code in a custom variable, and using a plugin to add the content of the custom variable to the page being rendered, bypassing the wordpress filters. This post explains how to do this.

Continue reading »

 Posted by at 5:12 pm