Snippets

Sabuj Kundu How to get author archive link using CBX Author Archive Joomla component

Created by Sabuj Kundu
1
2
3
4
5
if(JComponentHelper::isEnabled('com_authorposts', true) ){
    $author_id = ''; //set author id or user id here
	require_once JPATH_SITE . '/components/com_authorposts/helpers/route.php';
	$author_archive_link = AuthorpostsHelperRoute::getAuthorRoute($author_id, $language = 0);
}

Comments (0)