Skip to content

Ruben Divine

  • Blog
  • Samples
  • About
  • Contact Me

Category: Web Code

  • Using the tomorrow.io API to Fetch Weather Data on a WordPress Website

    Using the tomorrow.io API to Fetch Weather Data on a WordPress Website

    May 21, 2024

    tomorrow.io is a great real-time weather API you can use to fetch weather information and display it on your website or application. Here’s how I am using the API to display my local weather information on my WordPress website.

    Read More
  • Optimizing WordPress Image Scaling for a Better Performing Website

    Optimizing WordPress Image Scaling for a Better Performing Website

    November 21, 2023

    Discover the significance of precise image scaling in WordPress for improved web performance. Learn to create custom sizes and streamline the process with the Regenerate Thumbnails plugin for a seamless experience.
    Read More
  • JavaScript: Declaring Variables with “let” vs. “const”

    JavaScript: Declaring Variables with “let” vs. “const”

    February 3, 2023

    In JavaScript, "let" declares a variable whose value can change, while "const" declares a variable that cannot be reassigned. Choose based on intended behavior and make code cleaner and more maintainable.
    Read More
  • CSS Variables vs Sass Variables

    CSS Variables vs Sass Variables

    January 31, 2023

    CSS and Sass are web page styling languages, with Sass being a preprocessor that extends CSS with advanced features like variables, nesting, and mixins for dynamic stylesheet organization and calculation.
    Read More
  • Run PHP Function When Updating WordPress ACF Options Page

    Run PHP Function When Updating WordPress ACF Options Page

    March 4, 2022

    I needed to run a custom PHP function that updates custom fields attached to users when an admin clicks "update" on a back-end options page. The way I did this was using the acf/save_post action.
    Read More
  • The Power of Custom Fields

    The Power of Custom Fields

    February 9, 2022

    Power up your WordPress site with custom fields. Custom fields allows you to easily add custom data to your posts, pages, users, and more!
    Read More

Copyright © 2026 Ruben Divine