• Hi,

    I want to create a “page” where all the posts of the logged in user are displayed. I installed the exec-php plugin and used the function get_posts but I have to provide the ID of user:

      <?php
      global $post;
      $myposts = get_posts(‘numberposts=10&author=ID&post_status=publish&orderby=title’);
      foreach($myposts as $post) :
      setup_postdata($post);
      ?>

      I want it to automatically show the current user’s posts. How can I do it? Thanks a lot for your time

  • The topic ‘How to show current logged in author's published posts?’ is closed to new replies.