Blog

  • Formidable Forms: Export Large Views to One CSV in Batches Without Timing Out

    Formidable Forms: Export Large Views to One CSV in Batches Without Timing Out

    I have a client, who is actually a very close friend of mine, running a sales tracker on F. Every branch submits its shift sales through a form, and the team reviews everything in a Formidable View with filters for date, branch and POS type. It works great, until somebody clicks the Export to Excel link at the bottom of the View.

    With more than 27,000 entries in the form, the export just spins and then times out. So I wrote a small plugin that exports the same entries in batches and still gives you one CSV file at the end. Here is how it works, and the full code is at the bottom of this post.

    Why the default export times out

    The View export builds the entire CSV inside a single web request. It loads every matching entry, formats every field, and only then sends the file. With a few hundred entries you never notice. With tens of thousands, that one request runs longer than PHP and the web server allow, and the server kills it before the file is ready.

    (more…)
  • WordPress Just Gave My AI Assistant a Brain Upgrade

    WordPress Just Gave My AI Assistant a Brain Upgrade

    Last month I wrote about how Claude changed everything for me with custom Gutenberg blocks. I thought I had reached peak workflow. Cursor + Claude, my `.cursor/rules` file, my master prompt template. I was shipping blocks in 15 minutes instead of 6 hours.

    Then WordPress itself dropped something that made half of my “secret sauce” obsolete — in the best possible way.

    Enter: Agent Skills for WordPress

    The WordPress project quietly released an official repo called [agent-skills](https://github.com/WordPress/agent-skills). The tagline says it all:

    “Teach AI coding assistants how to build WordPress the right way.”

    Agent Skills are portable bundles of instructions, checklists, and scripts that AI assistants — Claude, Copilot, Codex, Cursor, whatever you use — read *before* they touch your WordPress code. Instead of the model guessing from its training data (which is often 2 years out of date), it follows documented, contributor-reviewed procedures.

    If you read my last post, you’ll remember my Step 1 was writing my own rules file: “Always use apiVersion 3, prefer render.php, follow WordPress Coding Standards, proper escaping and i18n…”

    That’s exactly what these skills are. Except written from official Gutenberg and WordPress documentation, reviewed by WordPress contributors, and way, way more thorough than my little rules file.
    (more…)

  • I hated building Custom Gutenberg blocks… Until Claude changed everything

    For years I built client sites the “normal” way. Need a custom testimonial section? I would either: Use a page builder (and hate the bloat), Write a shortcode (and feel dirty), Or attempt a real native Gutenberg block… and spend 4–6 hours fighting block.json, React hooks, InnerBlocks, responsive attributes, and PHP render_callback just to get something that didn’t break on save.

    I wanted native blocks — fast, lightweight, fully accessible, with proper block.json registration, clean React edit components, and optional server-side rendering in PHP. But the boilerplate was brutal. Then, in late April 2026, everything changed.

    The Day I Discovered Cursor + Claude 4 Sonnet

    I saw a short X thread from a developer I respect saying: “I just built a 7-feature pricing table block with toggle, schema markup, and animated counters in 11 minutes using Cursor + Claude 4 Sonnet. I’m never going back.”

    I was skeptical. I’d tried Grok, ChatGPT, Copilot, and even the new WordPress Telex experiment. They were ok, not that impressive.

    But I downloaded Cursor (the AI-first code editor), pointed it at a fresh plugin folder, and switched the model to Claude 4 Sonnet.

    My first prompt was deliberately simple: Create a production-ready native Gutenberg block called Feature Grid. Use modern block.json. Support 3–6 columns, icon (Dashicon or SVG), heading, description, optional button. Add color controls for background, text, and accent. Make it fully responsive (1-col mobile, 2-col tablet, 3-col desktop).

    42 seconds later Cursor had created the block.json

    It even included proper wp.i18n, escaping, accessibility attributes, and a clean InnerBlocks wrapper. I was speechless.

    The Blocks I’ve Built Since Then (Any Layout I Can Imagine)

    Once I saw what was possible, I went crazy. Here are some of the blocks I’ve shipped to real client sites in the last 10 days:

    1. Testimonial Carousel with Star Ratings + Autoplay

    Drag-and-drop testimonials
    5-star rating system (stored as attribute)
    Autoplay + pause on hover + navigation arrows
    Schema.org markup generated in render.php
    Fully responsive + swipe on mobile
    Time taken: 14 minutes (including 3 iterations)

    2. Pricing Table with Monthly/Annual Toggle

    React state for toggle
    Animated price change
    Highlighted “Most Popular” column
    Custom color controls + hover effects
    Server-side rendered for SEO
    Time taken: 19 minutes

    3. Interactive FAQ Accordion with JSON-LD Schema

    Smooth CSS animations
    Open multiple / single mode toggle
    Auto-generates proper FAQ schema
    Searchable (client-side filter)
    Time taken: 12 minutes

    4. Masonry-Style Image Gallery with Lightbox

    Drag multiple images
    Masonry layout via CSS Grid + JS
    Click opens native lightbox (no extra library)
    Caption + alt text editing inside the block
    Time taken: 17 minutes

    5. Feature Comparison Table (like the ones on Notion / Linear)

    Add/remove rows & columns dynamically
    Check/cross icons with color
    Mobile-responsive (cards on mobile)
    Time taken: 23 minutes

    Every single one of these is 100% native Gutenberg, and it works perfectly in the Site Editor, Full Site Editing, and classic themes.

    How I Prompt Claude 4 in Cursor (The Secret Sauce)

    I now use a consistent workflow that gives me near-perfect results every time:

    Step 1 – Project Rules (I created a .cursor/rules file)

    Always use apiVersion: 3 and modern block.json schema
    - Prefer render.php for dynamic content when possible
    - Follow WordPress Coding Standards strictly
    - Include proper escaping, sanitization, and i18n
    - Make every block fully accessible (ARIA, keyboard nav, color contrast)
    - Output complete, ready-to-build folder structure

    Step 2 – The Master Prompt Template

    You are an expert WordPress Gutenberg block developer.
    Create a production-ready native block called [Block Name].

    Requirements:
    1. [list every feature, control, layout behavior]
    2. Use block.json with apiVersion 3
    3. Full responsive design (mobile-first)
    4. Color, typography, and spacing controls
    5. Accessibility best practices
    6. Clean, commented code

    I then iterate in Cursor’s chat sidebar:
    – Add InnerBlocks support so users can put buttons inside each card
    – Make the carousel use the new Interactivity API instead of vanilla JS
    – Add a ‘Show on mobile only’ toggle attribute

    Claude 4 Sonnet or Opus handles context across multiple files better than any model I’ve tried. It remembers what we already built and suggests smart improvements. Which is awesome. Now life gets easier, specially web developers who struggles to use Gutenberg. Hahaha!

    Now I spend that time on design and user experience instead of boilerplate. The best part? I’m actually learning faster. Claude explains why it chose certain patterns (I used useBlockProps with className merging because…). I’ve leveled up my own Gutenberg skills dramatically in just two weeks.

    Honest Limitations (Because I’m Not Selling You Anything)

    You still need to test in a real WordPress environment (Claude is amazing but not perfect with every edge case of the Site Editor). Complex blocks sometimes need 2–3 follow-up prompts. And sometimes, the JSON output is broken, because AIs are not perfect, they also make mistakes like their human creators. You should understand the basics of Gutenberg. This is not “no-code” development. It’s “super-code”, development. These limitations are tiny compared to the 80–90% time savings.

    My Honest Recommendation as of June 2026. If you are a WordPress developer who has ever thought:

    “I wish I could just describe the block I want and have it appear…”

    Then stop everything and install Cursor + switch to Claude 4 Sonnet today. It’s not just faster. It fundamentally changed what I believe is possible for a solo developer to ship. I went from avoiding custom blocks to actively suggesting them to clients because now they are fun instead of painful.

    Enjoy vibe coding!

  • Writing my first blog post on WordPress 7.0

    Feels great, feels new. It’s awesome! There’s something magical about firing up a fresh WordPress install and realizing you’re not just using the platform, you’re stepping into its next evolution. Today, May 2026, I upgraded to WordPress 7.0 “Armstrong”, and I’m genuinely excited to share this journey with you. Whether you’re a longtime user like me or just getting started, this release feels like a breath of fresh air.

    This isn’t a revolutionary overhaul that breaks everything you know. It’s a mature, confident step forward. WordPress is growing up without losing its friendly soul. If you’re hesitant about updating, do it on a staging site first (always good practice). But from what I’ve seen in the first few hours, it’s stable, exciting, and genuinely fun to use.

    What’s next? I’ll be experimenting more with AI connectors for outlining future posts, testing the collaboration features with guest writers, and pushing the new design tools on a redesign project.

    What do you think of WordPress 7.0 so far? Have you upgraded yet? Drop your thoughts in the comments—I’d love to hear how it’s working for you. And if this is your first blog post too, welcome to the club. There’s never been a better time to start.

  • Short blog post and announcement that is very important!

    Oh hello there dear reader, if I still have some readers left. I just updated my blogroll. If you happen to be in my list back then but was already removed in my May 2026 update, it’s because your website is now a 404. I checked all links in my blog roll and most of them are not loading already, with SSL errors, or it’s just a landing page with nothing on it, but a placeholder page from your registrar. I have removed those pages already.

    And I just found out that all my links are in http, I have updated them all to https then added a _blank target, so that, you know what _blank will do right?

    If you want to be re-added in my blogroll, feel free to leave a comment in this post and I’ll check if you’re worthy to be re-added. I have added a bunch of tools and new links. Check it out and explore what’s new, what’s cool, and what’s worth visiting.

    Irayo!

  • A friend asked me what PSG Digital Marketing Agency to use. So I Did the Research.

    A few weeks ago, my close friend Chloe shot me a message: “Bry, you know anything about the PSG grant for digital marketing? My business could really use the push but I don’t know where to start, or who to trust.”

    Honestly, I didn’t have a confident answer off the top of my head. I knew the PSG existed (as I’ve been working in Singapore for over a decade now), and I’ve seen agencies advertise it, but I’d never gone deep on it. So I did what I always do when I don’t know something well enough to give good advice… I went down the rabbit hole.

    What follows is everything I found: what the grant actually is, how to apply step-by-step, and the 10 agencies I’d personally feel comfortable recommending. I’m writing this out properly because Chloe asked, chances are some of you have the same question.
    (more…)

  • Too many new features in WP 6.9

    I recently upgraded my blog to 6.9 and I love how WP progressed over the years. Back then I just use this for blogging, but now, it’s everything. You can even create apps, dashboards, booking systems, and everything you can think of using WP. Now, you can even leave comments like using Figma.

    The drag and drop editor Gutenberg that was so bad back then, really improved this 2026.

    I’m still using Classic Editor btw, but I’m gonna switch again and will just use the default Gutenberg editor moving forward. So far so gooooood!

    Also, I recently discovered vibe coding, and you can actually deploy professionally built websites and blog, that’s already headless in just a few seconds. Worst case scenario is minutes. lol! Now everyone is a web / app developer!

    Anyway, I know this guy who is bragging too much about he deployed this and that, and made this and that, with zero coding knowledge. Now this guy deployed a CRM where the company is actually using. One day, there’s an issue about it and he cannot fix it, nor the AI. I think it’s server related issue or some capacity as the code is not that optimized. It frequently goes down. He can’t fix it, AI can’t fix it, and it went down. He has zero clue how to fix it, so he resigned.

    Lesson here is, don’t overly rely on AI. Even a simple CSS issue, AI overcomplicates it, even if it’s just a simple one line fix.

    Gotta learn the basics, instead of just telling the artificial intelligence everything what you want.

    A solid foundation in basics is better than zero foundation at all.

    Stay humble. Stay foolish. Stay Hungry. Thank you Steve Jobs!

  • Clean Login custom user meta fields WP snippet

    I just made extra fields in my user registration and made it appear in the clean login [edit-profile] shortcode. Here’s a wp snippet that you can modify to do the same. I registered two custom user meta fields via formidable forms, but I can only view it if I display the form in the frontend. Formidable Forms lack the confirm email functionality when you change the email address in the web form, so I used clean login to achieve a frontend edit profile with e-mail confirmation.

    Below is an example snippet to add more fields in your clean login edit profile page.

    <?php
    // Add custom user meta fields to the Clean Login edit form
    add_action( 'clean_login_edit_profile_fields', function( $user_id ) {
        $contact   = get_user_meta( $user_id, 'contact', true );
        $territory = get_user_meta( $user_id, 'territory', true );
        ?>
        <p>
            <label for="contact"><?php _e( 'Contact', 'clean-login' ); ?></label><br>
            <input type="text" name="contact" id="contact" value="<?php echo esc_attr( $contact ); ?>" />
        </p>
        <p>
            <label for="territory"><?php _e( 'Territory', 'clean-login' ); ?></label><br>
            <input type="text" name="territory" id="territory" value="<?php echo esc_attr( $territory ); ?>" />
        </p>
        <?php
    });
    
    // Save the custom fields when user updates profile
    add_action( 'clean_login_save_profile_fields', function( $user_id ) {
        if ( isset( $_POST['contact'] ) ) {
            update_user_meta( $user_id, 'contact', sanitize_text_field( $_POST['contact'] ) );
        }
        if ( isset( $_POST['territory'] ) ) {
            update_user_meta( $user_id, 'territory', sanitize_text_field( $_POST['territory'] ) );
        }
    });