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 (Full version)[nmgr_images]
Wishlist orders (Full version)[nmgr_orders]
Wishlist messages (Full version)[nmgr_messages]
Wishlist settings (Full 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]

Account

[nmgr_account id=1]

Outputs the template for managing the logged in user’s wishlists. In the full 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 (Full 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 (Full 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 (Full 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 (Full 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.

Search

[nmgr_search show_form=true show_results=true form_action='' show_results_title=true show_post_count=true show_results_if_empty=false]

Displays the complete search template including the form for searching wishlists and the search results.

Attributes accepted:

  • show_form: Whether to show the search form. The value should be true or false. Default is true.
  • show_results: Whether to show the search results. The value should be true or false. Default is true.
  • form_action: Set a custom url for the search form to be posted to. Default is the current page.
  • show_results_title: Whether to show the search results title. Default is true. The title shown is ‘Search results for %s’ where %s is the search query.
  • show_post_count: Whether to show the number of results found. Default is true.
  • show_results_if_empty: Whether to show all results if no search query is provided. Default is false.

Search form

[nmgr_search_form]

Displays the form for searching wishlists.

Search results

[nmgr_search_results show_title=true show_post_count=true show_results_if_empty=false]

Displays the wishlist search results.

Attributes accepted:

  • show_results_title: Whether to show the search results title. Default is true. The title shown is ‘Search results for %s’ where %s is the search query.
  • show_post_count: Whether to show the number of results found. Default is true.
  • show_results_if_empty: Whether to show all results if no search query is provided. Default is false.

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.