Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter webgrade

    (@webgrade)

    Hi Daniel

    I’m using the Guest Author feature.
    I use $coauthor aswell as $ga in the PHP.

    I’ve got all the coauthor functions working inside the loop on the author pages.
    And I found a way to get all Guest Authors to display.

    However. I have various contact information, together with customized fields. That I would like to put on the Employees page.
    Can I use $ga functions to ‘pull’ data from the coauthor custom fields?

    Regards

    Jesper

    webgrade

    (@webgrade)

    Hi

    Try using ‘coauthors_wp_list_authors()’

    It gives you a simple list of all coauthors.

    Best

    Jesper

    Thread Starter webgrade

    (@webgrade)

    Hi Nick.

    Thank you for your reply.
    However I figured out how to do this in the functions.php.

    This is the solution, if anyone wonders.

    if ( in_array( ‘all’, $groups ) || in_array( ‘about’, $groups ) ) {
    $fields_to_return[] = array(
    ‘key’ => ‘favquote’,
    ‘label’ => ‘Quote’,
    ‘group’ => ‘about’,
    );

    So issue is solved 🙂

    Jesper

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