public function postTypePermalink($itemId, $catId = false, $noName = false, $onlyUrl = false)
    {
        $post = get_post($postId);

        $permalink = get_term_link(intval($catId), $this->taxonomy);
        $permalink = ($catId) ? trailingslashit($permalink) : home_url('/' . $this->plural . '/');
        $permalink .= trailingslashit(($noName ? "%$post->post_type%" : $post->post_name));

        if($onlyUrl === false)
        {
            return '<a href="' . $permalink . '/">' . get_the_title($post->ID) . '</a>';
        }
        else
        {
            return $permalink;
        }
    }