How to: Get template tag info outside the loop
-
I’ve searched and searched and although it seems simple maybe it’s just not possible but:
I have a plugin that gets the ids of specific users and puts them in an array. I want to use the array to get the link to their profile page, but only for these ids. It operates on a post page with no BP loops.
How?
For example, I’m using this to get the avatar from wordpress, but BP tags don’t seem to work the same, unless I’m somewhere outside the loop that I shouldn’t be.
foreach ($users as $user) {
echo get_avatar($user);
}
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to: Get template tag info outside the loop’ is closed to new replies.