To Display description in wishlist you have to follow below steps-
Create a new file description.phtml
at location
vendor/magento/module-wishlist/view/frontend/templates/item/column/description.phtml
In description.phtml add below code
<?php
$item = $block->getItem();
$product = $item->getProduct();
?>
<strong class="product-item-description">
<?php echo $block->escapeHtml($product->getDescription()) ?>
</strong>
Now at path
vendor/magento/module-wishlist/view/frontend/layout/wishlist_index_index.xml
in this file add below code after customer.wishlist.item.name
block
<block class="Magento\Wishlist\Block\Customer\Wishlist\Item\Column\Info" name="customer.wishlist.item.description" template="item/column/description.phtml" cacheable="false"/>
Note:- Do not change in core files, add in your theme directory
EDIT : proper way to load data
Create a new block file in your custom module at path
app/code/Namespace/Module/Block
<?php
namespace Namespace\Module\Block;
class Description extends \Magento\Wishlist\Block\Customer\Wishlist\Item\Column\Info
{
protected $_productloader;
public function __construct(
\Magento\Framework\View\Element\Template\Context $context,
\Magento\Catalog\Model\ProductFactory $_productloader
) {
$this->_productloader = $_productloader;
parent::__construct($context);
}
public function getDescription()
{
$id = $this->getItem()->getProduct()->getId();
$this->_productloader->create()->load($id);
return $product->getDescription();
}
}
In layout file replace block class from Magento\Wishlist\Block\Customer\Wishlist\Item\Column\Info
to Namespace\Module\Block\Description
After that in your template file you can get product description using below code
$block->getDescription();
To create a custom module you can follow this article