Author: utkarsh

  • Better file name

    Better file name

    I create a plugin which allows renaming file based on file content so you don’t have to. The plugin also helps generating alt text of the uploaded image and generate feature image. My aim for the plugin is to automated SEO data for the image. More details in plugin readme file on GitHub.

  • Migrate domain to new domain? A script to verify URLs are redirecting correctly

    When migrating a website’s domain to a new domain, it’s important to check that the URLs in the old domain’s sitemap are redirecting 1:1 to the corresponding pages on the new domain. This helps ensure that search engines continue to crawl and index the site’s pages, even after the domain has changed and visitors can…

  • Decrease repository clone time in CI / CD

    When using CI / CD to sync to repository from dev to build repository, sometime the build repo size is huge. First step is to reduce build repo size, If it doesn’t contain useful history you can clean up commits in it. GitLab has an article about how to do so. But if you just…

  • Adding attachment meta fields in WordPress

    WordPress adding attachment meta.

  • Fix Raspberry Pi 4 boot from SSD

    Fix Raspberry Pi 4 boot from SSD

    Hardware: RPI 4 – 4GB. SSD Case: – Orico 2.5″ USB 3.0 HDD Enclosure Case Micro HDMI to HDMI – BlueRigger High Speed Micro HDMI to HDMI (To debug issues) I followed guide provided in https://www.raspberrypi.org/documentation/hardware/raspberrypi/bcm2711_bootloader_config.md Somehow when I used Raspberry Pi image disk copier utility it did not work for me, I had to…

  • Setting Up Reliable WordPress Cron

    Setting Up Reliable WordPress Cron

    We all know wp-cron can be unreliable if left on default WordPress setting, WordPress’s behaviour on maybe I will run maybe not for wp-cron in a case of sites with less traffic. There are following solutions to solve this problem. All require to disable default WP cron. This will work for both single and multisite WordPress installation. Linux Crontab…

  • Backup WordPress site using Dropbox and wp-cli ?

    Here is how you can backup small site using wp-cli and dropbox. Go to: https://www.dropbox.com/developers/apps Create new app call it anything it’s gonna be your private app. Generated access token and save it somewhere in your locker 🙂 Download file backup-site.sh and change directories path and DROPBOX_TOKEN sudo chmod +x backup-site.sh Setup crontab with crontab -e…

  • WordPress Late Escaping but why!

    A post I wrote on late escaping. http://wp3sixty.com/2016/02/01/late-escaping-but-why/

  • Hello world!

    My name is Utkarsh Patel and I am full stack engineer with focus on WordPress. I’ve masters degree in information and technology and started my journey in 2014. Mostly, Blog will be on WordPress, JavaScript and other stuff which I find interesting. To start with here are/were my favorite blogs on WordPress Reach out at hi [at] utkarshpatel.com.…