Below are the available plugin shortcodes:
Title | Shortcode |
---|---|
Wishlist | [nmgr_wishlist] |
Search | [nmgr_search] |
Search form | [nmgr_search_form] |
Search results | [nmgr_search_results] |
Add to wishlist button | [nmgr_add_to_wishlist] |
Wishlist archive | [nmgr_archive] |
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
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
Add to wishlist button
[nmgr_add_to_wishlist id=2 type=wishlist]
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.
- type: The type of wishlist ot add the product to. Options are “gift-registry” or “wishlist”. If left blank, the plugin adds the product to the gift registry by default.
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 as2 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.