HomeCreative & Personal › How to Add a Simple Gift Registry Link Using a WordPress Shortcode

How to Add a Simple Gift Registry Link Using a WordPress Shortcode

Updated 2026-06-16 · Hosting Reviews

Hosting Reviews is reader-supported. This page contains affiliate links to Hostinger; we may earn a commission if you sign up through them — at no extra cost to you.

Creating a wedding website is a quick way to share details, collect RSVPs, and showcase your gift registry. If you’re wondering how to add gift registry link wordpress shortcode to your site, this guide walks you through the exact steps—from picking the right hosting to publishing the shortcode—so you can get online without breaking the bank.

What You Need to Get Started

Before you write any code, gather these three essentials:

Deal alert
Get Wedding Website online
Share your big day details with guests — an easy, affordable wedding website with RSVP, registry and photos.
Make Your Wedding Site on Hostinger →
  1. Domain name – a memorable URL like yourname-wedding.com. A custom domain looks professional and is easy to share.
  2. Web hosting – a reliable, affordable plan that supports WordPress. Shared hosting from Hostinger typically runs between $3 and $15 per month, with free SSL and one‑click WordPress installs.
  3. WordPress theme or builder – choose a wedding‑focused theme that includes RSVP forms and photo galleries, or use a drag‑and‑drop builder if you prefer visual editing.

With these in place, you’re ready to install WordPress and start adding content.

Choosing the Right Hosting Plan

For a wedding website you don’t need massive resources. Here’s how to decide:

Because most wedding sites attract a few hundred visitors, a shared plan from Hostinger provides the perfect balance of speed, security, and price.

Installing WordPress and Setting Up Your Site

Hostinger’s control panel includes a one‑click WordPress installer. Follow these steps:

  1. Log into your Hostinger account and navigate to the Hosting dashboard.
  2. Click “Install WordPress” and fill in the site name, admin email, and password.
  3. Choose the domain you registered and hit “Install.” WordPress will be ready in minutes.
  4. Log into the WordPress admin area (/wp‑admin) and install a wedding‑specific theme (many free options exist in the theme repository).

Activate the theme, customize colors, and add your RSVP form using the theme’s built‑in block or a plugin like WPForms.

Creating a Simple Gift Registry Shortcode

WordPress shortcodes let you embed reusable content with a single tag. Below is a minimal shortcode that outputs a clickable registry button. You can paste this code into your theme’s functions.php file or a site‑specific plugin.

function wedding_registry_link_shortcode( $atts ) {
    $atts = shortcode_atts( array(
        'url'   => '#',
        'text'  => 'View Our Gift Registry',
        'class' => 'registry-button'
    ), $atts, 'registry' );

    return sprintf( '%s',
        esc_url( $atts['url'] ),
        esc_attr( $atts['class'] ),
        esc_html( $atts['text'] )
    );
}
add_shortcode( 'registry', 'wedding_registry_link_shortcode' );

Now you can add the registry wherever you edit a page or post:

[registry url="https://www.amazon.com/registry/your‑registry" text="Our Amazon Registry"]

The shortcode respects your theme’s CSS, so you can style the .registry-button class in style.css to match the rest of your site.

Speed, Security, and Ongoing Maintenance

Even a simple wedding site benefits from a few best practices:

All of these steps keep your site fast and secure without requiring a developer.

Launching and Sharing Your Wedding Website

When your content, RSVP form, photo gallery, and registry shortcode are live, it’s time to go public:

  1. Test the site on desktop and mobile. Verify that the registry button opens the correct URL and that the RSVP form submits correctly.
  2. Set the site visibility to “Public” in WordPress Settings → Reading.
  3. Send the URL to your guests via email, digital invitations, or printed cards.
  4. Monitor traffic using the free Jetpack stats module or Hostinger’s analytics dashboard.

Because the site runs on Hostinger’s fast, SSD‑based servers, you’ll see load times under two seconds for most visitors—a crucial factor for keeping guests engaged.

FAQ

Do I need coding skills to add a registry link?

No. The shortcode method only requires copying a small snippet into functions.php once. After that, you insert the shortcode in the editor without touching code again.

Can I use a free domain instead of buying one?

Free subdomains work technically, but a custom domain looks far more professional and is easier for guests to remember. Hostinger’s domain registration often includes a discounted first‑year price.

What if I exceed the shared‑hosting limits?

Most wedding sites stay well within the resource limits of a shared plan. If traffic spikes, you can upgrade to Hostinger’s cloud hosting with a few clicks—no site migration required.

Ready to buy?
Get Wedding Website online
Share your big day details with guests — an easy, affordable wedding website with RSVP, registry and photos.
Make Your Wedding Site on Hostinger →