Forum Replies Created

Viewing 1 replies (of 1 total)
  • Forum: Plugins
    In reply to: New plugin – Userextra
    andgeo

    (@andgeo)

    The best I have been able to do to get the userextra information to appear on a author.php is to create a loop that always only happens once. Such as this:
    <?php
    $i = 1;
    while ($i != 2) {
    $i++;
    $usermeta = new Usermeta();
    echo $usermeta->get(get_the_author_ID(), “age”, true);
    }
    ?>

    This seems to work, but only when the user has written a post before. If the user hasn’t posted before, the userextra info will be blank. Any ideas why this is happening, and what I could do to get it so it always appears for every user?
    Also, does anyone have any idea of how to get the userextra info to appear on the comments? It seems to just give the info for the person who wrote the post, not the commenter.
    Clearly this plugin was designed for the single purpose of being used in posts, but its features would be more useful in other areas as well.
    Any help would be appreciated, thanks.

Viewing 1 replies (of 1 total)