2016-09-04, 04:51 PM
Hello,
i was actually developing a Aio monthly post counter plugin which should count monthly posts of the specified group's user(there postcounts should be shown in their profile fields,postbits[only those selected group's users only*])
till now i came to this function:
http://pastebin.com/aAkBsvyV
there i tried with admin's postcount.
but don't know how to add like
if $user is in == specified usergroup then {
function postcount () for him
}
and i tried to show the posts (using {$posts}) in the template but failed :/
anyone can help ?
i was actually developing a Aio monthly post counter plugin which should count monthly posts of the specified group's user(there postcounts should be shown in their profile fields,postbits[only those selected group's users only*])
till now i came to this function:
http://pastebin.com/aAkBsvyV
there i tried with admin's postcount.
but don't know how to add like
if $user is in == specified usergroup then {
function postcount () for him
}
and i tried to show the posts (using {$posts}) in the template but failed :/
anyone can help ?