Load Fishpig Blog category collection by Id and get its details

admin

Administrator
Staff member
I wanted to load a fishpig category collection by Id and retrieve its details.<br>
Have used this code.

Code:
$main_category_col = Mage::getResourceModel('wordpress/post_category_collection')-&gt;load(6);
foreach($main_category_col as $main_category_col_obj)
    {
        $category_name = $main_category_col_obj-&gt;getName();         
    }

Please help.