Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter tigerman

    (@tigerman)

    Thanks for the help, I just found that this occurred because I had made both the tag slug and the category slug as the word “topics”. Once I changed one of them and re-created the sitemap using the sitemaps plugin everything is fine now.

    Thread Starter tigerman

    (@tigerman)

    Thanks, I have another question I would like to display the photo of the user/author along with the author name, I checked the URL Codex author templates, it has no field for author picture, so I checked the source for WP admin screen authors & users screen, to see how that displays the user photo and I eventually landed on wp-admin/includes/user.php which has these fields for WP_User
    $user = new WP_User( $user_id );
    $user->user_login = attribute_escape($user->user_login);
    $user->user_email = attribute_escape($user->user_email);
    $user->user_url = clean_url($user->user_url);
    $user->first_name = attribute_escape($user->first_name);
    $user->last_name = attribute_escape($user->last_name);
    $user->display_name = attribute_escape($user->display_name);
    $user->nickname = attribute_escape($user->nickname);
    $user->aim = isset( $user->aim ) && !empty( $user->aim ) ? attribute_escape($user->aim) : ”;
    $user->yim = isset( $user->yim ) && !empty( $user->yim ) ? attribute_escape($user->yim) : ”;
    $user->jabber = isset( $user->jabber ) && !empty( $user->jabber ) ? attribute_escape($user->jabber) : ”;
    $user->description = isset( $user->description ) && !empty( $user->description ) ? wp_specialchars($user->description) : ”;

    return $user;

    But there is no field for picture or photo of the user! From where do I get that?

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