All Collections
Help Articles
WordPress Integration
Adding the [demandwell_links] Shortcode to Your Site
Adding the [demandwell_links] Shortcode to Your Site

How to control where internal links show up on your site

Sam Smith avatar
Written by Sam Smith
Updated over a week ago

The Demandwell Plugin looks for the shortcode [demandwell_links] when visitors & search engines view your pages.

If the shortcode is present on a page, post, block, widget, or template, it will be replaced with the list of Internal Links that you’ve configured & published from the Demandwell Link Mapper tool.

If the shortcode is present, but no links are configured for the page that it appears on, it will simply be removed and not seen by visitors or search engines.

How to Add the Shortcode

Simply add the shortcode [demandwell_links] anywhere on your site that you want the links from Demandwell to appear.

Where to Add the Shortcode

Where you add the shortcode will depend on how you want to manage the appearance of internal links across your site.

Option 1 - Page or Post Body Content

Manually include the shortcode in the body content of any Page or Post, exactly where you want links to appear.

This allows you to place the links differently on different pages and posts, but requires the shortcode to be manually added to each one, individually.

Option 2 - Widgets or Blocks

Include the shortcode in a Widget or Block that can be natively designed into your site layout.

This allows you to insert the shortcode into a reusable component of your site, using WordPress to manage the layout.

Reminder: The [demandwell_links] shortcode can be placed safely on any page or post of your site, and it will not display to visitors unless you have specifically configured links for that URL.

Option 3 - Template or Template File

The shortcode can be included in any WordPress Template or Code file.

Using this methods allows you to flexibly include the shortcode in templates and custom code that are used across your site.

Reminder: The [demandwell_links] shortcode can be placed safely on any page or post of your site, and it will not display to visitors unless you have specifically configured links for that URL.

A Note About Custom Post Types & Editors

The [demandwell_links] shortcode works, as long as it appears on the page during render, so it’s fully compatible with any Custom Post Types or 3rd party site builders & theme designers.

Did this answer your question?