'

WordPress Move, how to fix the Fatal Error on Activation

In our normal routine, it isn’t uncommon to migrate a WordPress site, most of the times from production to its final domain. The plugin WordPress Move (realized and maintained by Mert Yazicioglu) is an useful tool that serves this very purpose. It allows to migrate the whole pack (database, files, plugins, settings) at ease. It’s also good for backing up [...more]

Ultimate WordPress body_class function

I wasn’t happy with the default body_class() function in WordPress. I wanted to assign more classes to the body element in order to target various sections or specific pages across the website, so that to style them appropriately. Filtering the body_class() function is a common practice and I found several resources to help me in the task. I started playing [...more]

Does WordPress fail to upgrade or upload?

I had recently an issue on one of my customers website which puzzled me. I was getting an error while uploading a new media or if I tried to automatically update plugins. I was getting an ungraceful error. Warning: touch() [function.touch]: Unable to create file /home/user/public_html/website/wp-content/tmp/filename.tmp because No such file or directory in /home/user/public_html/website/wp-admin/includes/file.php on line 177 Warning: unlink(/home/user/public_html/website/filename.tmp) [function.unlink]: [...more]

How well Alister Cameron nailed down in 2008 – The future of WordPress Themes

Looking behind, in the past, it’s so intriguing. What big names, involved in the develop of WordPress since the beginning, said of the future? What did they think it was going to happen? Not many of them expressed reliable previsions, I may say (from my comfy chair in the 2012 – admittedly quite unfair). You can read tons of comments [...more]

WordPress, how to customize a Widget in the Dashboard

WordPress how to customize a Widget in the Dashboard

Here’s a trick I’ve just discovered and I’d like to share with others. When you enter in the Back End of a WordPress website the Dashboard is there to welcome you. The screen contains few widgets, preformatted with news and feed from the WordPress’ network. I guess few of us pay actually attention to those details since we’re usually too [...more]

How to implement LESS in WordPress, first approach

How to implement LESS in Wordpress, first approach

I recently discovered LESS, as defined by its creator “The dynamic stylesheet language”. A method to write CSS using variables, functions and improved classes. I fell immediately in love with it and I pondered about how to implement LESS into my WordPress development and workflow. In fact I want my new themes to be responsive and if I’m right in [...more]

WPX: List Similar Posts

WPX List Similar Posts is a very simple functionality plugin for WordPress that gives you a new function to display a list of posts that share the same tags or categories of the main article. Or if you prefer you can copy and paste the function wpx_list_similar_posts into your functions.php file. For a better use, please consult the examples at [...more]

WPX: The Post Thumbnail, Enhanced

Often you want to highlight a title of an article putting aside an image, more appropriately a thumbnail. WordPress offers a function for that scope, the_post_thumbnail. In order to make use of it, you need to activate the relative support, and to set a Featured Image in the proper panel while editing the post. To make things easier, you can [...more]

You don’t need TimThumb, use add_image_size for Thumbnails

matrioska

How to use add_image_size and the_post_thumbnail in our themes. Being TimThumb still an excellent plugin, it’s time to give him a break: we have better ways to manage thumbnails in WordPress. No doubt that TimThumb is a wonderful script. It allowed me to avoid the tangle to re-upload pictures for old articles when switching to a new theme. I thought [...more]

Sanitize the Google Analytics Tracking Code

Stay Safe with the Google Analytics Tracking Code

Is it a safe practice to let users copy and paste any kind of Javascript, assuming they’ll just use a tracking code? How can you validate such a code and keep it safe from malicious scripts? I decided to take a different approach, I accept (and validate) only an ID. The last day I had a thought, perhaps naive, but [...more]

Page 1 of 3123