/** * Perform the joins necessary to create a full category record */ protected function _initSelect() { parent::_initSelect(); $this->getSelect()->where('taxonomy.taxonomy=?', 'category'); if (Mage::helper('wordpress')->isPluginEnabled('taxonomy-terms-order', false)) { $this->getSelect()->order('main_table.term_order ASC'); } else { $this->getSelect()->order('main_table.name ASC'); } return $this->getSelect(); }
/** * Perform the joins necessary to create a full category record */ protected function _initSelect() { parent::_initSelect(); $this->getSelect()->where('taxonomy.taxonomy=?', 'link_category'); return $this->getSelect(); }
/** * Perform the joins necessary to create a full category record */ protected function _initSelect() { parent::_initSelect(); $this->getSelect()->where('taxonomy.taxonomy=?', 'post_tag'); return $this->getSelect(); }