Shortcodes

The plugin has shortcodes for displaying its templates. The content of most of these shortcodes can also be displayed alternatively using their direct functions (see template functions).

Below are the available plugin shortcodes:

TitleShortcode
Account[nmgr_account]
Account wishlist[nmgr_account_wishlist]
Wishlist overview[nmgr_overview]
Wishlist profile[nmgr_profile]
Wishlist items[nmgr_items]
Wishlist shipping[nmgr_shipping]
Wishlist images (Pro version)[nmgr_images]
Wishlist orders (Pro version)[nmgr_orders]
Wishlist messages (Pro version)[nmgr_messages]
Wishlist settings (Pro version)[nmgr_settings]
Wishlist sharing [nmgr_share]
Wishlist [nmgr_wishlist]
Search[nmgr_search]
Search form [nmgr_search_form]
Search results [nmgr_search_results]
Enable wishlist form[nmgr_enable_wishlist_form]
Add to wishlist button[nmgr_add_to_wishlist]
Wishlist archive[nmgr_archive]

Account

[nmgr_account id=1]

Outputs the template for managing the logged in user’s wishlists. In the pro version it outputs the template for managing all wishlists while in the lite version it outputs the template for managing a single wishlist.

Attributes accepted:

  • id: The id of the wishlist. If left blank the plugin attempts to get the id from the global wishlist variable, post object, or database. The id does not need to be supplied in the lite version.

Account wishlist

[nmgr_account_wishlist id=1]

Outputs the template for managing a specific wishlist by the logged in user. In the lite version it displays the same content as [nmgr_account].

Attributes accepted:

  • id: The id of the wishlist. If left blank the plugin attempts to get the id from the global wishlist variable, post object, or database. The id does not need to be supplied In the lite version.

Wishlist overview

[nmgr_overview id=1 title=Overview]

Displays overview information for a single wishlist.

Attributes accepted:

  • id: The id of the wishlist. If left blank the plugin attempts to get the id from the global wishlist variable, post object, or database. The id does not need to be supplied In the lite version.
  • title: The title header to use for the template. Default none.

Wishlist profile

[nmgr_profile id=1 title="Gift Registry details"]

Displays the wishlist profile form for a new or existing wishlist.

Attributes accepted:

  • id: The id of the wishlist. If left blank the plugin attempts to get the id from the global wishlist variable, post object, or database. If an id cannot be found the shortcode displays a new profile form. The id does not need to be supplied In the lite version.
  • title: The title header to use for the template. Default is “[Gift Registry] details” where [Gift Registry] is the wishlist type title.

Wishlist items

[nmgr_items id=1 title=Items editable=false]

Displays the items added to a wishlist.

Attributes accepted:

  • id: The id of the wishlist. If left blank the plugin attempts to get the id from the global wishlist variable, post object, or database. The id does not need to be supplied In the lite version.
  • title: The title header to use for the template. Default none.
  • editable: Whether the template can be editable. The value should be true or false. Default is true. If editable is set to true the template would only be shown if the current logged in user is the owner of the wishlist. This allows only the owner of the wishlist to edit the items in his wishlist.

Wishlist shipping

[nmgr_shipping id=1 title="Shipping Details"]

Displays the shipping form for a wishlist.

Attributes accepted:

  • id: The id of the wishlist. If left blank the plugin attempts to get the id from the global wishlist variable, post object, or database. The id does not need to be supplied In the lite version.
  • title: The title header to use for the template. Default “Shipping Details”.

Wishlist images (Pro version)

[nmgr_images id=1 title=Images editable=false]

Displays the featured and background images attached to a wishlist.

Attributes accepted:

  • id: The id of the wishlist. If left blank the plugin attempts to get the id from the global wishlist variable, post object, or database.
  • title: The title header to use for the template. Default none.
  • editable: Whether the template can be editable. The value should be true or false. Default is true. If editable is set to true the template would only be shown if the current logged in user is the owner of the wishlist. This allows only the owner of the wishlist to edit the images for his wishlist.

Wishlist orders (Pro version)

[nmgr_orders id=1 title=Orders]

Displays details of the customers who bought items for the wishlist owner.

Attributes accepted:

  • id: The id of the wishlist. If left blank the plugin attempts to get the id from the global wishlist variable, post object, or database.
  • title: The title header to use for the template. Default none.

Wishlist messages (Pro version)

[nmgr_messages id=1 title=Messages editable=false]

Displays the messages sent by guests to the wishlist owner.

Attributes accepted:

  • id: The id of the wishlist. If left blank the plugin attempts to get the id from the global wishlist variable, post object, or database.
  • title: The title header to use for the template. Default none.
  • editable: Whether the template can be editable. The value should be true or false. Default is true. If editable is set to true the template would only be shown if the current logged in user is the owner of the wishlist. This allows only the owner of the wishlist to edit the messages for his wishlist.

Wishlist settings (Pro version)

[nmgr_setting id=1 title=Settings]

Allows the wishlist owner to change settings for his wishlist such as it’s visibility and exclude from search status.

Attributes accepted:

  • id: The id of the wishlist. If left blank the plugin attempts to get the id from the global wishlist variable, post object, or database.
  • title: The title header to use for the template. Default none.

Wishlist sharing

[nmgr_share id=1 title="Social Sharing"]

Displays icons for sharing the wishlist on social media.

Attributes accepted:

  • id: The id of the wishlist. If left blank the plugin attempts to get the id from the global wishlist variable, post object, or database. The id does not need to be supplied In the lite version.
  • title: The title header to use for the template. Default none.

Wishlist

[nmgr_wishlist id=1]

Displays specific content for a wishlist such as profile information, items, images and share links and allows users to add the wishlist items to the cart.

Attributes accepted:

  • id: The id of the wishlist. If left blank the plugin attempts to get the id from the global wishlist variable, post object, or database.

See https://docs.nmerimedia.com/nm-gift-registry-and-wishlist/searching-wishlists/#nmgr_search

Search form

See https://docs.nmerimedia.com/nm-gift-registry-and-wishlist/searching-wishlists/#nmgr_search_form

Search results

See https://docs.nmerimedia.com/nm-gift-registry-and-wishlist/searching-wishlists/#nmgr_search_results

Enable wishlist form

[nmgr_enable_wishlist_form]

Displays the form for allowing a logged in user to enable the wishlist module for his use.

Add to wishlist button

[nmgr_add_to_wishlist id=2]

Displays the button for adding a product to the user’s wishlist(s).

Attributes accepted:

  • id: The id of the product to add to the wishlist. If left blank the plugin attempts to get the id from the global product variable or post object.

Wishlist Archive

[nmgr_archive show_header=true show_title=true show_results_count=true title='']

Displays the wishlist archive page showing all the published wishlists.

Attributes accepted:

  • show_header: Whether to show the header above the archive results. The header includes the archive title such as Wishlists and the results count with page number such as 2 results found - page 2. The value should be true or false. Default is true.
  • show_title: Whether to show the archive title in the header. The value should be true or false. Default is true.
  • show_results_count: Whether to show the number of results found and the page number in the header. The value should be true or false. Default is true.
  • title: Set a custom title for the archive results. Uses default archive title if none is set.