<?php# Uncomment the next three lines if you’re calling this outside of Magento#require_once ‘./app/Mage.php’;#umask(0);#Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID);# If you’re calling this from inside a phtml file then you can use something like this to get the category ID#$category_id = $this->getCurrentCategory()->getId();# or use the following line:$category_id=1;# Change category ID here.$category= Mage::getModel(‘catalog/category’)->load($category_id);$products= Mage::getModel(‘catalog/product’)->getCollection()->addAttributeToSelect(‘*’)->addCategoryFilter($category)->load();foreach($productsas$product){echo ‘<a href=”‘.$product->getProductUrl().'”>’.$product->getName().”</a><br>”; } ?>