Inserting Links (Shortcodes)

Shortcodes are simple, easy-to-use snippets that let you insert dynamic content into your WordPress pages, posts, or widgets. They act as placeholders that WordPress processes to generate the final content, such as a link, form, or video. With LinkCentral, you can use shortcodes to quickly insert and manage your custom links.

To insert a LinkCentral link using a shortcode, use the following format:

[linkcentral id={id}][/linkcentral]

Replace {id} with the unique ID of the link you want to display.

Optional attributes

You can customize the behavior of the link with the following optional attributes:

  • newtab="true": Opens the link in a new tab.
  • parameters="param1=value1&param2=value2": Appends URL parameters to the link (Premium only).

Example:

[linkcentral id="123" newtab="true" parameters="ref=123&campaign=summer"][/linkcentral]

FAQ & Troubleshooting

What happens if I don’t add any attributes?
If no attributes are added, the default settings for that link will be used. The link will not open in a new tab, and no parameters will be added.

Can I use shortcodes inside text widgets or other content areas?
Yes, you can insert shortcodes in any area of your WordPress site that supports shortcodes, including text widgets, posts, and pages.

What should I do if my shortcode isn’t working?
If the shortcode isn’t displaying the link correctly, ensure that you’ve entered the correct ID and attributes. If problems persist, check for conflicts with other plugins or themes. Clearing your site’s cache may also resolve display issues.

If the shortcode is still not working, consider inserting a regular link.

Contents