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
- Update post counts (published, draft, unattached) in admin interface
- Post slugs and images cannot have same name?
- Pretty URL with add_query_var
- how to get permalink using sql
- Force “Submit to review” when a post is updated
- Why can posts never have a number as the link?
- How to allow slashes in single posts when i click in the edit permalink button
- Overview with latest edited posts and pages
- how to grab first link in post… and of course call it
- Get how many days since last post of the current user
- Load post content into div with ajax
- Hide comments awaiting moderation from user who submitted the comments
- Linking to page with all posts
- What Defines What Category A Post Picks (if in multiple)
- Custom post type permalinks breaking due to 3.1 bug fix
- wp_insert_post let users post to without login…broke
- Changing my permalink structure – will new layout conflict with existing page?
- disable column on post and user list
- Display all months with posts and inside each month show the 5 latest posts
- if I create ‘front-page.php’, then how do I link to post index?
- UberMenu list current user’s posts as menu items
- count the total number of comments the user has received for his published posts
- Direct link to “New post” in specific category?
- Changing Permalinks for Default Post type to reflect navigation
- Using permalinks, category slugs, and tag slugs
- Problem with permalink routing?
- How to verify wp user password by sql query in wp? [closed]
- How can i delay reading posing in 3days for not logined user?
- List category posts alphabetically on archive.php
- How to display excerpt post on hamepage and archive pages?
- the_permalink() not working in a root installation
- Second get_permalink inside loop points to wrong URL
- Hide comments and posts posted by other user
- Deleted a user with administrator rights. Now all the data/content/images are lost. how to recover them back
- singular posts using archive styling
- register_post_type permalink
- Post is blank when I click on the link
- How to make Link to go on the first post
- Post titles and thumbnails as links to custom post types?
- Display in category ( taxonomy) a number of post that I want
- Cannot select certain authors for posts after import
- Find out in which kind of archive am I
- Making posts permalinks consistent numbers
- Short link to read complete post
- Delete all Tag Links from Posts
- Can Permalink structure of %postname%/%post_id% improve performance
- How to create several Post pages
- Categories Listing and Highlighting current category item
- Remove subcategory slug from url
- Can I show category name in url for only one of my categories?
- Add data attribute of post_id for Internal links
- Please help a newbie with blog page issue?
- Prevent the automatic URL linking added in last update
- How to hide protected posts from archive?
- blog post not accesible on click [closed]
- Some custom post types did not return an object
- How do I remove all links from all my posts at once?
- Private post caught in endless redirect loop
- Redirect to custom post if custom archive page has just one result?
- How to add a ‘News’ section to specific posts in WordPress
- How can I set the permalink of an article / page equal to the permalink of an existing article / page?
- WordPress Delete Users from backend doesn’t work
- Creating a link to the first post in a category
- view a list of 3 future post, from the nearest to the most far
- How to add category base prefix to wordpress permalink
- Category URL to use same string as Post URL Permalink
- Post & Category Archives URL structure
- How to display term in archive page?
- Allow users to create their own page/s
- One of my posts is displayed as page
- Permalink structure as code in back-end?
- Delete old post with new post
- How do I display the next 3 posts in the sidebar?
- The post order is different for logged-in and non-logged-in users? [closed]
- How to get pagination working with “Pending” Posts
- Show all posts in category
- Display post count on archive page in reverse order
- Filter/Sort Post Form On Taxonomy page
- How can I fixe the article title problem?
- Automatically select category based on user role
- I want the Title of page/post to show up topmost when reading the post/page
- Modify Post URL Programmatically
- Custom permalink for ‘post’ not working