In this tutorial, we’ll guide you through the usage of the WordPress Post URL Shortcode, exploring various options for customizing its functionality.

Let’s dive into the world of simplifying post URL-related content creation with the AIO Shortcodes plugin!

Getting Started With Post URL Shortcode

To use the [aio_post_url] shortcode, ensure you have the AIO Shortcodes plugin installed and activated on your WordPress website.

This shortcode can be used anywhere inside your WordPress content, including post/page content, headings, lists, paragraphs, sidebars, widgets, menu items, etc.

Basic Usage Of [aio_post_url]

Once the AIO Shortcodes plugin is installed and activated, displaying the post URL using the WordPress shortcode [aio_post_url] is straightforward.

Let’s explore its full potential through common examples and enhance your user experience.

Advanced Options And Attributes

The shortcode comes with advanced options to further customize its functionality.

Using the ‘id’ Attribute:

The ‘id‘ attribute allows you to specify the post ID and generate the URL accordingly.

Basic format: [aio_post_url id="x"], where ‘x‘ is the post’s special ID.

To find the post ID, go through your WordPress dashboard by editing the post and identifying the “post=(ID-NUMBER)” section in the URL inside the address bar.

Using the ‘link’ Attribute:

The ‘link‘ attribute in the shortcode [aio_post_url link="yes/no"] determines whether the post URL should be linked or displayed as a simple text. The default value is ‘yes.’

Basic format: [aio_post_url link="yes/no"]

  • Input: [aio_post_url link="no"]
  • Output: https://aioshortcodes.com/docs/post-url-shortcode/(plain post URL without a link)

Using the ‘new_window’ Attribute:

The ‘new_window‘ attribute in the post URL shortcode specifies whether the link if created, should open in a new window. The default value is ‘no‘.

Basic format: [aio_post_url new_window="yes/no"]

Using the ‘class’ Attribute:

The ‘class‘ attribute in the shortcode [aio_post_url class="custom-class"] specifies the CSS class for the link.

Basic format: [aio_post_url class="custom-class"]

Combined Attributes:

Combine attributes for a more tailored post URL.

  • Input: [aio_post_url id="123" link="no" class="custom-class" new_window="yes"]
  • Output: https://aioshortcodes.com/docs/page-url-shortcode/(customized post URL with specified attributes)

Shortcode Combinations & Output Samples Table

Here’s a table of different examples using the [aio_post_url] shortcode with various attributes:

InputOutputDescription
[aio_post_url]https://aioshortcodes.com/docs/post-url-shortcode/Output the post URL with default values
[aio_post_url id="123"]https://aioshortcodes.com/docs/page-url-shortcode/Output with the post URL with a specified ID
[aio_post_url link="no"]https://aioshortcodes.com/docs/post-url-shortcode/Output with plain post URL without link
[aio_post_url class="custom-class"]https://aioshortcodes.com/docs/post-url-shortcode/Output post URL with a custom CSS class
[aio_post_url new_window="yes"]https://aioshortcodes.com/docs/post-url-shortcode/Output post URL with a link that opens in a new window
[aio_post_url id="123" link="no"]https://aioshortcodes.com/docs/page-url-shortcode/Output post URL with a specified ID and no link
[aio_post_url id="123" class="custom-class"]https://aioshortcodes.com/docs/page-url-shortcode/Output post URL with a specified ID and custom CSS class
[aio_post_url id="123" link="yes" class="custom-class" new_window="yes"]https://aioshortcodes.com/docs/page-url-shortcode/Output post URL with the specified ID, a custom CSS class, and a link that opens in a new window

Feel free to use any combination of these attributes to tailor the appearance and behaviour of post URLs using AIO Shortcodes on your WordPress website.

Still not using AIO Shortcodes?

Install our plugin to boost your site’s content SEO, automate your affiliate marketing, and lots more, just by using these simple WordPress shortcodes.