Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7951737
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T02:39:05+00:00 2026-06-04T02:39:05+00:00

Creating my WordPress author.php template page and ran into a little roadblock. I want

  • 0

Creating my WordPress author.php template page and ran into a little roadblock. I want to be able to separate all the Author’s posts by the parent category they are in. For example, I have these major categories of posts: ‘Books’, ‘Audio’, ‘Video’, ‘Curriculum’. On the author page, I want those overarching categories to be the header of each section and then the posts related to that section listed under the header.

Is the only way to do it to run multiple loops or is there a more efficient way?

Thanks!

Allan

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T02:39:07+00:00Added an answer on June 4, 2026 at 2:39 am

    You need to keep the file name author.php so you get that slug and link, but remove the standard WP loop and use a new query for each category, like this:

    <?php $my_query = new WP_Query('category_name=mycategoryname&showposts=-1'); ?>
    
    <?php while ($my_query->have_posts()) : $my_query->the_post(); ?>
    
    <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>">
    
    <?php the_title(); ?></a>
    
    <?php endwhile; ?>
    

    This can be used multiple times in a page template without conflict. Change showposts=-1 to 1 for one post, 10 for ten posts, etc. -1 shows all.

    Use html to arrange the output of those loops into columns.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am creating a Wordpress website for multi author and want to set user
Im using Wordpress, Im also creating posts via XMLRPC based on an RSS feed
I have 2 custom fields in my WordPress system when creating new posts. One
I am creating a small utility which will help to rebuild install.php of WordPress.
I'm creating a custom Wordpress Theme and I can't seem to get the single.php
I am creating a profile page in wordpress for each of the authors creating
Hi I am creating a wordpress custom page theme, I have included the code.
I'm creating a customized WordPress theme based on an existing site. I want to
I am creating a wordpress plugin that needs to be able save a file.
Simple question. I'm creating a wordpress theme and I want to display the post

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.