Forums

doing ... for each category (3 posts)

  1. Jaycos
    Member
    Posted 7 years ago #

    Hey,

    i am very thankful for this code
    <?php $order = 'user_nicename';
    $user_ids = $wpdb->get_col("SELECT ID FROM $wpdb->users ORDER BY $order"); // query users
    foreach($user_ids as $user_id) : // start authors' profile "loop"
    $user = get_userdata($user_id);
    ?>

    that i got from here:
    http://wordpress.org/support/topic/34752?replies=41#post-294192
    and that produces an output for each author of a blog.

    Does anybody know, how to modify it to do something for each category?

  2. moshu
    Member
    Posted 7 years ago #

    Can you re-phrase it what do you mean "for each category"? Doesn't WP do that? I mean clicking on a catgeory name it will display all the posts for that category. Am I missing here something?

  3. Jaycos
    Member
    Posted 7 years ago #

    Ok, let's make it more concrete :-)
    Have a look at this top secret testing platform:
    http://www.viermann.info/testblog/feeds/
    As you see there is a table row for each author. I managed that with the code mentioned above. Now i would like to realize that for categories as well.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags