Question: I want to show products in same category withing single product page. 
see bellow diagram what i want to achieve
[![live site example](https://i.stack.imgur.com/EJCJ2.jpg)](https://i.stack.imgur.com/EJCJ2.jpg) 
please see this site [<https://www.jackthreads.com/goodale/shirts/rutledge-navywhite-plaid-shirt/products/170189][1]> for more idea. i want to know how it achieve?

Answer: 
Try this code in your view.phtml 

```
<?php
$productId = $_product->getId();
$productCollection = Mage::getModel('catalog/product')->load($productId);
$catIds = $productCollection->getCategoryIds();
 foreach ($catIds as $categoryId) {
    $_productCollection = Mage::getModel('catalog/category')->load($categoryId)
            ->getProductCollection()
            ->addAttributeToSelect('*')
            ->addAttributeToFilter('status', 1)
            ->addAttributeToFilter('visibility', 4);
            foreach($_productCollection as $catProducts){
                echo    $catProducts->getName();
                echo '<br>';
                    // get your product here 
            }

}

?>

```
The Magento way of doing this is to add related product for individual Product from admin Panel

`Catalog > Manage Products > Choose the Product to Edit > select the related Product tab > and choose the relevent Product(s) you want to show on Product Page`

I now it is time consuming Process but you can show more relevant products and increase the sales.