Remove Fields [WP Plugin]

The WordPress plugin Remove Fields main purpose is to help you get more comments to your blog by removing the website field from the comment form, and trust me,  it works, the reason is that a lot of people think that the website field is mandatory, when they see it they will refrain from posting… Continue reading Remove Fields [WP Plugin]

Categorized as WordPress

WordPress and dashes (m-dash & n-dash)

This post is outdated as of WordPress 6.0. See the first comment. I got you there, I too didn’t know there were n and m dashes “–” and “—“. Anyways, the process of using one of these in my life was something like this:

Categorized as WordPress

PHP: empty() is your friend

It’s easy to miss things that are very obvious, this is the proper way to check that a variable has a value that is not nothing (null, 0, FALSE, “false”, array(), etc) without getting PHP E_NOTICE messages (that I encourage you to show when developing): // Check that $var is set and is not empty:… Continue reading PHP: empty() is your friend

What is MVC?

The MVC design pattern separates business logic from user interface Model–View–Controller is a design pattern or a software engineering concept that separates the model, the view and the controller from each others, thus dividing the labour in your application in such a way that: The model is the brain, the knowledge, or simply data and… Continue reading What is MVC?

PHP code to remove breadcrumbs in a Drupal page

Sometimes you want to hide the breadcrumbs in a single page an keep it in the others, either using a module or inside a node. You can remove the breadcrumb from a Drupal page with this line of code: This is how I do it: drupal_set_breadcrumb(array());