how to get all author and all custom field of wordpress with xmlrpc-c#

I want to get all author and all customfield of wordpress with xmlrpc and add in comobox;
I do it with this code,

I use JoeBlogsV1 Library

Read More
WordPressWrapper w = new WordPressWrapper(textBox1.Text, textBox2.Text, textBox3.Text);

var author = w.GetAuthors();
for (int i = 0; i < author.Count; i++)
{
   comboBox1.Items.Add(author[i].ToString());
}

but this return the AlexJamesBrown.JoeBlogs.Structs.Author
how to i can do it ?

Related posts

Leave a Reply

1 comment

  1. Each author is in fact a struct with several fields:

    public string user_id;
    public string user_email;
    public string user_login;
    public string display_name;
    

    You can access the fields individually:

    for (int i = 0; i < author.Count; i++)
    {
       comboBox1.Items.Add(author[i].display_name);
    }