You don’t need to put your code in your theme functions. This needs to be a custom page template. Learn about page templates here:
http://codex.wordpress.org/Page_Templates
Your code is custom loop so you need to also learn about loops and then using WP_Query so next stop will be here:
http://codex.wordpress.org/The_Loop
Then read this page:
http://codex.wordpress.org/Class_Reference/WP_Query
After you do this you will be ready to implement your custom loop to show authors their posts.
Study, the codex so that you have a better understanding of how WordPress works before you make changes to things that will break WordPress.
Then when you ask questions here you will be able to get a better answer to problems that you are having because the people here will understand your question better.
Related Posts:
- Link for the page archive for posts, like using custom post types with get_post_type_archive_link
- WordPress: How to get the current logged in author page URL?
- Keep getting same permalink with WP_Query?
- Must permalinks always point to single post pages?
- Navigation link to specific user page
- change default post archive page link
- Removing rel=”nofollow” from links posted in Post Content
- How should I add links to other pages/posts from my post?
- How to handle broken links created by permalink/slug changes?
- Internal linking to posts permalink fail because of spaces and stripe at postname
- How to link post titles on page A to its posts on page B?
- Permalink Short code showing unnecessary link text inside the loop
- Prevent Archive URLs
- Modifying the permalink href for posts with jquery
- Read more link not working [closed]
- After the local installation of an old WP website I can see the homepage but I can’t access to the articles, why?
- Permalink issue with new blog posts > getting 301 redirect
- How do I check if I linked to a post before I delete it?
- How to use “Add link” pop up for a WordPress widget
- Where is the old post permalink slug stored?
- Update post counts (published, draft, unattached) in admin interface
- Difference between an archive and a page listing posts
- How to Display a List of Users Who Have Made at Least 1 Post?
- How to Check if a Page Exists by URL?
- Use category base slug in posts’ permalink
- Find out who deleted a page or post?
- has_archive=false on the default post type
- Clear cache when a post is submitted [closed]
- How to automatically generate a unique random slug
- Custom permalink structure only for default posts
- Portable Post Links
- WordPress rewrite url help needed
- Permalink of some posts change
- Allow users to create their own page/s
- Get current user array with post string
- Change link to permalink inside post content
- How to organise post by category and date
- Daily posts like an archive
- How to set a link to custom archieve page
- External link not showing on post but showing on comment
- One of my posts is displayed as page
- Make assigning post to a specific category equivalent to assigning it to all categories
- How to mix pages and sub-categories in a url
- Show Custom Post From Logged In Author
- How to change link with broken link?
- Permalink structure as code in back-end?
- Delete old post with new post
- How to get alphabetic listing x other posts, based on first letter post?
- Changing permalink of custom category
- TCPDF and permalinks
- Overwrite URL on blog posts
- How do I display the next 3 posts in the sidebar?
- WordPress sub-posts and permalinks
- How to handle dates, trying to calculate time since a post
- How to display subcategory articles in the category view?
- Change posts URL [duplicate]
- each user having category with their name and can add sub categories post in that category
- 301 Redirecting posts without %postid% (just %post_name%) in permalink to ones with %post_name%_%postid%
- How do I add /blog/ on my permalink without affecting the portfolio project types permalink?
- The post order is different for logged-in and non-logged-in users? [closed]
- Display all posts from selected month
- Permalink remain the same on each page
- How to get pagination working with “Pending” Posts
- Show all posts in category
- custom sort posts in archive/taxanomy page
- How can we pass a value from the_permalink() at WordPress?
- Automatically add class to link based on link text
- how to show all post with its contents
- Add author section on Author archive posts
- Default post type doesn’t display in url
- User submitted post
- Changes done in admin panel are taking time to reflect in the REST api responses
- How to change Permalinks only for Blogposts
- Display post count on archive page in reverse order
- How to automatically convert a form with HTML link into post
- Permalink structure for two separate blogs
- Blog posts are not appearing as subs of Blog Page
- Automatically search and replace link in content (pages/posts)?
- Filter/Sort Post Form On Taxonomy page
- How can I fixe the article title problem?
- Automatically select category based on user role
- Undefined Function Fatal Error with Shortcode [closed]
- How to add paraent in Blog post URL in wordpress
- Change permalinks in posts via SQL
- Why can posts never have a number as the link?
- How to remove category and other tags from posts page
- How to allow Contributors to edit their own posts, whilst still needing to be reviewed by an admin?
- I want the Title of page/post to show up topmost when reading the post/page
- Global $post value outside the loop
- Modify Post URL Programmatically
- Custom permalink for ‘post’ not working
- Category and archive issue
- Allow users to edit post without logging in
- Remove Archive Posts Page
- Does WordPress Super User or Administrators can create and edit post and media on behalf of a user
- Post type gives 404 unless logged in
- Display posts on a custom page from only a specific category?
- Change the slug of post type using custom code
- Display post archive as a month table, show last three months
- How do I link my post title/excerpt/read more to the source site?