• jaycos

    (@jaycos)


    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:
    https://www.ads-software.com/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?

Viewing 2 replies - 1 through 2 (of 2 total)
  • moshu

    (@moshu)

    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?

    Thread Starter jaycos

    (@jaycos)

    Ok, let’s make it more concrete ??
    Have a look at this top secret testing platform:
    https://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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘doing … for each category’ is closed to new replies.