Shortcodes

1.3.Single Menu Items

Display Single Menu Item
Simply output a single menu item instead of menu items of a whole category
Note: You can also use all other non-category related attributes as listed in “Categories / Category Loop” above (style, currency position etc)
 
single=’6′ required integer id of wppizza menu item
Examples
 
[wppizza single='6']
– output single menu item that has id 6

Add to cart button
output a button – with or without dropdown, depending on number of sizes available – to allow adding of a specified menu item to cart
 
type=’add_item_to_cart_button’ required string  
id=’6′ required integer id of wppizza menu item
size=’2′ optional integer id (zero indexed) of wppizza menu size for that item
single=’1′ optional omit | 1 set to 1 to not output dropdown choice of sizes (if any). omit attribute to automatically show sizes dropdown if available
Examples
 
[wppizza type='add_item_to_cart_button' id='6' size='0']
– output a button to add menu item with id 6 and size id 0 to cart. if there is more than one one size choice a dropdown will be displayed
[wppizza type='add_item_to_cart_button' id='6' size='1' single='1']
– output a button to add menu item with id 6 and size id 0 to cart. No dropdown will be displayed. Button will only add ID=6 Size=1 to the cart
Yes No Suggest edit
Suggest Edit

documentor id 3