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 am setting up Wordpress for a school. They want to enable teachers to have their own section of the site where they can create posts in different categories (assignments, events, etc).

I know that Wordpress supports multiple authors and that I can show posts by those authors out of the box by going to http://domain.com/authors/{username}.

However, instead of just showing all of the posts from different categories in one loop, I would like to allow the user to view posts by category and they can choose from a link menu.

alt text

Can anyone point me in the right direction on how to do this? Is there a way to create a url that would filter posts by author AND category?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

You should consider to make use of an author template. It will allow you to control how the author page is displayed, so you can add what you pictured into there.

You can then register a rewrite endpoint to create the multiple areas of the author page. In the template just check on which "subpage" you are and display the tabs and listing accordingly.

That's basically doing WP_Query then which is pretty well documented, so should be an easy start.

share|improve this answer
    
Have you seen any tutorials on how to properly add an endpoint like you're suggesting? I'm having a hard time grasping exactly what you mean by that. –  Dan Gayle Nov 18 '10 at 18:30
1  
adding and reading an endpoint: gist.github.com/705545 –  hakre Nov 18 '10 at 20:22

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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