4 corrected code
source | link

Try this please

    $_category  = $this->getCurrentCategory();        
    $_collection = $_category->getProductCollection();        
    $_items = $_productCollection->getItems(); 
   if($_items){  
    $_items[0]->getShortName();
    $_items[0]->getProductUrl();
   }

Try this please

    $_category  = $this->getCurrentCategory();        
    $_collection = $_category->getProductCollection();        
    $_items = $_productCollection->getItems();    
    $_items[0]->getShortName();
    $_items[0]->getProductUrl();

Try this please

    $_category  = $this->getCurrentCategory();        
    $_collection = $_category->getProductCollection();        
    $_items = $_productCollection->getItems(); 
   if($_items){  
    $_items[0]->getShortName();
    $_items[0]->getProductUrl();
   }
3 highlight code
source | link

Try this please

    $_category  = $this->getCurrentCategory();
         
    $_collection = $_category->getProductCollection();
         
    $_items = $_productCollection->getItems(); 
    
    $_items[0]->getShortName();
    $_items[0]->getProductUrl();

Try this please

    $_category  = $this->getCurrentCategory();
 
    $_collection = $_category->getProductCollection();
 
    $_items = $_productCollection->getItems(); 
 
$_items[0]->getShortName();
$_items[0]->getProductUrl();

Try this please

    $_category  = $this->getCurrentCategory();        
    $_collection = $_category->getProductCollection();        
    $_items = $_productCollection->getItems();    
    $_items[0]->getShortName();
    $_items[0]->getProductUrl();
2 highlight code
source | link

Try this please

$_category = $this->getCurrentCategory();

$_collection = $_category->getProductCollection();

$_items = $_productCollection->getItems();

$_items[0]->getShortName(); $_items[0]->getProductUrl();

    $_category  = $this->getCurrentCategory();

    $_collection = $_category->getProductCollection();

    $_items = $_productCollection->getItems(); 

$_items[0]->getShortName();
$_items[0]->getProductUrl();

Try this please

$_category = $this->getCurrentCategory();

$_collection = $_category->getProductCollection();

$_items = $_productCollection->getItems();

$_items[0]->getShortName(); $_items[0]->getProductUrl();

Try this please

    $_category  = $this->getCurrentCategory();

    $_collection = $_category->getProductCollection();

    $_items = $_productCollection->getItems(); 

$_items[0]->getShortName();
$_items[0]->getProductUrl();
1
source | link