How to Add a Simple Gift Registry Link Using a WordPress Shortcode
Updated 2026-06-16 · Hosting Reviews
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:
- Domain name – a memorable URL like
yourname-wedding.com. A custom domain looks professional and is easy to share. - 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.
- 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:
- Shared hosting – Ideal for beginners. Plenty of CPU and RAM for a single site, easy cPanel access, and the lowest price tier.
- Cloud hosting – Slightly higher cost but offers better scalability if you expect heavy traffic from multiple guests.
- VPS – Overkill for a typical wedding site unless you plan to host a large e‑commerce store alongside the registry.
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:
- Log into your Hostinger account and navigate to the Hosting dashboard.
- Click “Install WordPress” and fill in the site name, admin email, and password.
- Choose the domain you registered and hit “Install.” WordPress will be ready in minutes.
- 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:
- Free SSL – Hostinger includes an SSL certificate at no extra cost. Activate it in the control panel to encrypt visitor data, especially the RSVP form.
- Caching plugin – Install a lightweight plugin like WP Super Cache or use Hostinger’s built‑in caching to boost page load times.
- Regular updates – Keep WordPress core, themes, and plugins up to date. Enable automatic updates for minor releases if you’re not comfortable manual updates.
- Backup solution – Hostinger offers weekly backups; consider adding a plugin like UpdraftPlus for extra peace of mind.
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:
- Test the site on desktop and mobile. Verify that the registry button opens the correct URL and that the RSVP form submits correctly.
- Set the site visibility to “Public” in WordPress Settings → Reading.
- Send the URL to your guests via email, digital invitations, or printed cards.
- 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.