get profilePicture from site creator

Post Reply
LucyDemoon
Ssr. Bludit
Posts: 10
Joined: Thu May 18, 2023 7:55 pm

Hey,

How can I retrieve the user profile picture of the person who created the page or blog entry?
this do not work:

Code: Select all

<?php echo $user->profilePicture() ?>

and this also not working

Code: Select all

<?php $users->keys('profilePicture') ?>
btw: I'm a newbie when it comes to PHP.
User avatar
Edi
Site Admin
Posts: 3022
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 39 times
Been thanked: 61 times
Contact:

You can use the following:

Code: Select all

<?php echo $page->user('profilePicture');  ?>
See for example:

https://github.com/bludit-themes/medium ... me.php#L42
LucyDemoon
Ssr. Bludit
Posts: 10
Joined: Thu May 18, 2023 7:55 pm

Nice Thx this working,
now i understand a litle bit more how i can extract values
Post Reply