Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I've been all over this site and google, and the WP codex looking for an answer to this one. I know it's out there, and I know it's easy. Maybe has something to do with user_nicename, but I just can't make it work.

What I'm trying to do for the site I'm working on is eliminate any need and any ability for the user to see the backend of the blog. This means front-page everything: Login, Post, and if I can swing it - a dash board.

I envision changing the "site admin" link on the wp login/logout code to link to a blog page called "User Dashboard" there, the user could view a list of their posts and comments.

Really reaching for the stars, they should also be able to see a list of comments on their posts, and really really reaching for the stars - some kind of messaging system.

I'm currently simply trying to get the post list down! I can't figure out how to return the_author post list based on a dynamic setting of where the request is coming from. IE: Only list the current logged in users posts/comments. There is a plugin called Full Author User List or something to that affect, that doesn't work anymore as it's outdated.

Any help?

share|improve this question

1 Answer 1

up vote 4 down vote accepted

there you go, i'm not the only one trying to bring back-end functionality to the front-end. anyway its not that hard go to your "USER DASHBOARD" template's file and locate where the loop starts something like:

<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

and just above it paste this code:

<?php
/* First get the user info */
get_currentuserinfo();
/* Then query_posts by user id */
query_posts(array('author'=>$current_user->ID));
/* And Last just loop thrugh the posts */
?>

hope this helps :)

share|improve this answer
1  
You're a rockstar and my hero!! –  Lynne Jan 15 '11 at 6:33
    
Hmm, unfortunately this isn't working? It's the same list for every user. Maybe I am running through the loop incorrectly, I just used the general one from codex, could you maybe give me a full example? Thanks either way! :s –  Lynne Jan 15 '11 at 7:27
    
Oop. I got it. Just an idiot. and tired. –  Lynne Jan 15 '11 at 7:37
    
:), happy you got it. –  Bainternet Jan 15 '11 at 18:16
1  
You have to create the template yourself. –  Lynne Nov 14 '11 at 21:59

protected by Community Jan 24 '13 at 9:23

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.