Skip to main content
deleted 20 characters in body
Source Link

Try this solution for the category filter:

$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$category = $objectManager->create('Magento\Catalog\Model\ResourceModel\Category\Collection');
$category->addAttributeToSelect('*')->addAttributeToFilter('parent_id',['eq'=>3]);

Thanks,
Ketan

Try this solution for the category filter:

$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$category = $objectManager->create('Magento\Catalog\Model\ResourceModel\Category\Collection');
$category->addAttributeToSelect('*')->addAttributeToFilter('parent_id',['eq'=>3]);

Thanks,
Ketan

Try this solution for the category filter:

$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$category = $objectManager->create('Magento\Catalog\Model\ResourceModel\Category\Collection');
$category->addAttributeToSelect('*')->addAttributeToFilter('parent_id',['eq'=>3]);

Try this solution for the category filter:

$objectManager = \Magento\Framework\App\ObjectManager::getInstance();

$category = $objectManager ->create('Magento\Catalog\Model\ResourceModel\Category\Collection');

$category->addAttributeToSelect('*')->addAttributeToFilter('parent_id',['eq'=>3]);

$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$category = $objectManager->create('Magento\Catalog\Model\ResourceModel\Category\Collection');
$category->addAttributeToSelect('*')->addAttributeToFilter('parent_id',['eq'=>3]);

Thanks,
Ketan

Try this solution for category filter:

$objectManager = \Magento\Framework\App\ObjectManager::getInstance();

$category = $objectManager ->create('Magento\Catalog\Model\ResourceModel\Category\Collection');

$category->addAttributeToSelect('*')->addAttributeToFilter('parent_id',['eq'=>3]);

Thanks Ketan

Try this solution for the category filter:

$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$category = $objectManager->create('Magento\Catalog\Model\ResourceModel\Category\Collection');
$category->addAttributeToSelect('*')->addAttributeToFilter('parent_id',['eq'=>3]);

Thanks,
Ketan

Source Link

Try this solution for category filter:

$objectManager = \Magento\Framework\App\ObjectManager::getInstance();

$category = $objectManager ->create('Magento\Catalog\Model\ResourceModel\Category\Collection');

$category->addAttributeToSelect('*')->addAttributeToFilter('parent_id',['eq'=>3]);

Thanks Ketan