$current_author = get_query_var(peepso('profile','user-id'));
-
Hi, im trying to integrate peepso into my wordpress site. What i would like to achieve is to have posts created by user/author show up in their peepso profile page. I have tried the code below but with no results.
<?php
$current_author = get_query_var(‘author’);
$author_posts= get_posts( ‘author=’.$current_author );
if($author_posts){
echo “Mijn dagboek berichten”;
echo ‘- ‘;
- “.$author_post->post_title.”
foreach ($author_posts as $author_post) {
echo ”“;
}
echo ‘‘;
}
?>Regards
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘$current_author = get_query_var(peepso('profile','user-id'));’ is closed to new replies.