dbManager->getAuthorPopularPostsByViews($userId, $from, $to, $postTypes, $limit, $excludeArgs);
if ($ppByViews) {
foreach ($ppByViews as $post) {
$id = $post['post_id'];
$viewCount = intval($post['view_count']);
$title = APSWHelper::getSubstringedString($post['title']);
$postUrl = get_permalink($id);
?>
-
dbManager->getAuthorPopularPostsByComments($userId, $from, $to, $postTypes, $limit, $excludeArgs);
if ($ppByComments) {
foreach ($ppByComments as $post) {
$id = $post['post_id'];
$viewCount = intval($post['comment_count']);
$title = APSWHelper::getSubstringedString($post['title']);
$postUrl = get_permalink($id);
?>
-