WordPress.org

Ready to get started?Download WordPress

Forums

Page Content Based on Categories (5 posts)

  1. conjuror
    Member
    Posted 4 years ago #

    Forgive me if this is very basic but I am new to WP and I can't figure this out...

    I have 3 people posting blogs, each posting under their own independent category names. I have managed to create a separate page for each of them that lists their last 5 posts (based on category name).

    How to I keep each of them completely separate so that when one of their posts is selected, the sidebar list of posts and other navigation links on the resulting page, only show the posts that belong to that particular person (same with the archive list, etc.).

    It seems that when a post is selected, the post is shown within the main WP default page and displays links to all posts, regardless of what category they belong to.

    Thanks in advance for your assistance.

  2. Patrick Daly
    Member
    Posted 4 years ago #

    You'll need to do a lot of template customization to achieve this. Every place on the page that you want to show author specific content you'll need a custom loop. This likely means that you won't be able to use the default widgets in the sidebar, but rather you'll just need to write your own loops in sidebar.php.

    You'll need to take a look at this: http://codex.wordpress.org/Template_Tags/query_posts

  3. neilzii
    Member
    Posted 4 years ago #

    Did you ever find a solution to this?

  4. conjuror
    Member
    Posted 4 years ago #

    Thanks Developdaly, it's too advanced for the level I'm at right now so I'll see if I can find some other way to achieve this...

  5. vtxyzzy
    Member
    Posted 4 years ago #

    From reading the plugin page, Role Scoper seems to do what you want. Among the features:

    ■ Customize access for specific Pages, Posts, Categories
    ■ Assign roles to User Groups (or directly to user)
    ■ Control Read and/or Edit access
    ■ Pages and Category listing match modified access
    ■ Category post counts and tag cloud match modified access
    ■ Page and category listings maintain tree structure even if some branches are hidden

Topic Closed

This topic has been closed to new replies.

About this Topic