Forum Replies Created
-
@Hugo
Done…but still nothing after “created by”
Seriously, I can’t understand what’s wrong.
Thank youthank you Hugo, I hope I did exactly what you said and now I see Created by:
It doesn’t get the avatar or name….
This is the code. I’m really sorry to bother you and I really appreciate your help.
`<?php/**
* BuddyPress – Groups Loop
*
* Querystring is set via AJAX in _inc/ajax.php – bp_dtheme_object_filter()
*
* @package BuddyPress
* @subpackage bp-default
*/?>
global $groups_template;
$group_detail = $groups_template;-
<a href="”><a href="”>
Created By: <a href="group->creator_id) ?>”> $group_detail->group->creator_id , ‘width’ => 80, ‘height’ =>80))?>
/
`
Ok I understood I have to create the file “goups-loop.php” in my child theme. I succeed to add text and other lil things, but when I try to add “created by” and the user id of the group admin or his avatar, I get: “Created by: no admin” Can anyone help me? Which code should I use to get group admin name or avatar?
I also tried to add this code in “goups-loop.php”:But it gives me error. If I change “creator_id” with any other Class it works perfectly (id; name; slug; description; status;….).
Thanks in advanceThank you so much. I’ll follow your advice, but this is the Group header when you are already in the group page. What if I want to display the “Created by” after the Group title in the Group directory?
-
