Skip to main content

The Blog

One of my great passions is writing and sharing knowledge, here you will find some of my most recent articles. Mostly about web development, but also about other topics I may find interesting.

The Latest…

How to retrieve users in Gutenberg

A demonstration of creating a Gutenberg block that queries user information in Gutenberg and WordPress.

Read post

Generate dynamic Open Graph images in Next.js

In this tutorial I will show you how to create dynamic Open Graph images in Next.js.

Read post

The correct way of using blockquotes

Advice on how to use blockquotes correctly in HTML

Read post

Implementing Debounce in Vanilla Javascript

A simple tutorial explaining the concept of Debounce and how to implement it in vanilla Javascript

Read post

How to add a metabox in React to Gutenberg

In this tutorial I will show you how to add a react component to the metaboxes area of WordPress

Read post

What is WordPress?

What is WordPress? What is it for? How does it work? In this post I will answer the most common questions that are had when one starts working with this platform.

Read post

Calculate average reading time in JavaScript

In this post I will explain and share a small script that will allow us to calculate the average reading time of any text in JavaScript.

Read post

Introduction to WP-CLI

In this post we will show you how to install and use WP-CLI, a command line tool for WordPress.

Read post

Add a "Back to top" button in React

En este tutorial aprenderás a crear un botón de regreso al inicio en React.

Read post

Create a Dark Mode Button in React with Tailwind

In this quick tutorial, we'll add a button to toggle dark mode to our components with Tailwind.

Read post

Create a settings page in WordPress with React – Part 3

Part three of a series of tutorials where we will learn how to create a settings page in WordPress using React and the WordPress API. Now we need to save the data inside our database and read it within our settings page to make sure we are not overwriting the data

Read post

Create a settings page in WordPress with React – Part 2

Part two of a series of tutorials where we will learn how to create a settings page in WordPress using React and the WordPress API. I will show you how to use the components included in WordPress to add text fields, and save the options.

Read post

Create a options page in WordPress with React – Part 1

Part one of a series of tutorials where we will learn how to create an options page in WordPress using React and the WordPress API

Read post

Use arrays in SASS

Even though it is a somewhat old tool, for more than 10 years SASS has been one of my best friends in web development, it remains extremely powerful even with the numerous advances in CSS in recent years, because it still has several tools that CSS does not, and they are still useful, such as the ability to use arrays in sass.

Read post

Copy Chrome requests to Postman

Recently I have been working on a project that uses GraphQL as a language for requests. It is an interesting project because it is what is called a headless CMS, in which the backend is managed with WordPress and the frontend with React, therefore, it is necessary to debug APIs very often; for this I use Postman. But since I have to move between applications, sometimes I need to copy requests from Chrome to Postman.

Read post

Custom array order in PHP

Next, I will mention how to achieve a custom order of arrays in PHP

Read post

Capitalize first letter with Javascript

In this quick tutorial we will learn how to make the first letter of a string uppercase

Read post

Restarting the Blog

A bit over 10 years ago I started working as a professional web developer, and nothing could make me happier, it has been a great journey from those days when I studied architecture, through that stage when I didn't know what to do with my life, to now where I feel that in several ways, I have finally achieved success.

Read post

Compiling CSS and Javascript with wp-scripts

Quick tutorial to compile CSS and Javascript with `wp-scripts`

Read post

Implementing throttle in Vanilla JavaScript

This time I will be showing how to create a simple throttle function using only Vanilla JavaScript.

Read post

Create symbolic links in OSX

Symbolic links, or symlinks as they are also known. They can be seen as an alias, they are nothing more than "symbolic" paths that can point to any location on your computer, they are useful when you want to keep directories separate, but at the same time one inside the other. For example, if I have a repository with these files

Read post

Change the origin of a Git repository

More than once I have needed to change the origin of a repository, so to make my life easier I decided to make the annotation here.

Read post

Work from home advice

Hard times are what we are currently living, with a quarantine that we still do not see a clear end to. There is no doubt that the world will be different once this ends. Yes, because this will end.

Read post

Update a Fork in Github

When I am contributing either to the core of WordPress or to another Github project, I like to create my own repository to avoid problems in the original.

Read post

Production images in local environment with nginx

Quick tutorial to serve production images in a local environment with nginx

Read post

How to manage WordPress using Git

Learn how to manage your WordPress installation using Git.

Read post

The importance of NOT using FTP

Why you shouldn't use FTP to upload files to your server.

Read post

Remove items from an array in Javascript

How to remove items from an array in Javascript.

Read post

First steps with Vue.js

A quick exercise to start working with Vue.js

Read post

Thoughts about Impostor Syndrome

Collection of thoughts about Impostor Syndrome.

Read post

Working with the WP_Error class

Simple tutorial on how to use the WP_Error class in WordPress.

Read post

Writing a download manager plugin with WordPress

I have always said that you can do almost anything using WordPress thanks to all the built-in functions and APIs that we have at our disposal. However, seems like for some of them the documentation is still in early stages.

Read post

Understanding the WordPress Loop

One of the most basic (and yet powerful) features inside WordPress is The Loop, this small piece of code that we use over and over again. And yet, I find people who called themselves a WordPress expert and don't know what it is, that's… sad.

Read post

Creating a contact form with PHP and AngularJS

AngularJS seems to be the sensation these days, that's why I decided to try and learn the basics of it. In fact, this very website is built using AngularJS, however, I did find a couple of issues while working with it, nothing serious, but one of them that surprised me was the contact form, since it took me a while to get the hang of it, I decided to share what I learned with a small tutorial.

Read post

Display RSS Feed in WordPress

Displaying an RSS feed in WordPress is pretty simple, you can use the built-in RSS widget or you can use a plugin. But what if you want to display an RSS feed in a post or page? That is a little bit more complicated, but still pretty easy.

Read post

WordPress Transients: What are they and how do I eat them

WordPress, despite being my favorite daily work tool and the one I know the most, has still several options and functions I've never used. Not too long ago, one of them was the Transients API. Really useful functions to store temporary data in the database.

Read post

How to take full advantage of your WordPress sidebar

Sidebars on blogs are underestimated, and usually you see the exact same sidebar on every single page of a blog, I think that is just a waste of space. But when used properly, you can turn your lame sidebar into a killer sidebar!

Read post