get profilePicture from site creator

Post Reply
LucyDemoon
Ssr. Bludit
Posts: 11
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: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 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
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
LucyDemoon
Ssr. Bludit
Posts: 11
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