• Resolved anabelle

    (@anabelle)


    Is ther any variable i can use to retrieve the author id of a certain post inside the loop?

    i’ve tried $authid but it doesn’t seam to work, i’ve also tried the_author_ID() but it writes down the number and i need to use it as a parameter inside a php function.

Viewing 1 replies (of 1 total)
  • Thread Starter anabelle

    (@anabelle)

    I solved it using:

    <?
    global $theauthorID;
    $theauthorID = get_the_author_ID();
    ?>

    And then calling $theauthorID inside the function

    ??

Viewing 1 replies (of 1 total)
  • The topic ‘Retireve author id as a number.’ is closed to new replies.