Getting order items on success page (success.phtml) (Magento 1)

Use the following code to get all ordered items on the Magento success page.

Getting custom options of ordered items on success page (success.phtml) (Magento 1)

Using the folowing code you can get the custom options of the ordered items on the Magento success page.