• Resolved wentforgold

    (@wentforgold)


    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 ‘

      ‘;
      foreach ($author_posts as $author_post) {
      echo ”

    • “.$author_post->post_title.”
    • “;
      }
      echo ‘

    ‘;
    }
    ?>

    Regards

    https://www.ads-software.com/plugins/peepso-core/

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.