WordPress.org

Ready to get started?Download WordPress

Forums

User/Author functions (2 posts)

  1. Jack Reichert
    Member
    Posted 4 years ago #

    It would be really great to have an echo option for the_author_meta() function.
    Also, a get_authors() function which would spit back user ids and could be filtered by wp_user_level

    This way I could manage my users info on an author's page of my blog.

  2. Jack Reichert
    Member
    Posted 4 years ago #

    have the basics for get_authors() here:

    function get_authors() {
    		global $wpdb;
    			$authors = $wpdb->get_results("SELECT * from wp_usermeta WHERE meta_key = 'wp_user_level' AND meta_value != '0'");
    		return $authors;
    	}

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.