• Resolved fcaoneyearbible

    (@fcaoneyearbible)


    After reading many posts, I just don’t quite understand what the Get author profile plug in is supposed to do? I have installed the plug in, and it is active, but I’m not sure what should change, or if I need to write code somewhere or something?

    The end result that I am looking for is on every post, be able to click on the author’s name, which would direct you to a profile page for that author. I’m hoping all the information in that profile page can be generated automatically (from each author’s profile page under dashboard.)

    If someone could help me, that would be awesome! I don’t really understand all the coding jargon!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Which plugin ?
    Have you checked the author’s page ?

    There is a way to get info inside WP:
    http://codex.wordpress.org/Template_Tags/the_author

    I suppose the plugin meant is mine:

    http://guff.szub.net/get-author-profile/

    fcaoneyearbible, did you read the material I posted about the plugin on the blog post linked above? Let me know if there’s anything I can expand upon there that’ll help in detailing the functionality and use of it.

    Thread Starter fcaoneyearbible

    (@fcaoneyearbible)

    Thank you both. I found a lot of material about creating an author.php page, which I have done. I have written the code on that page to use the $curauth tags. It’s working OK, but I didn’t know if the plug in makes something easier?

    Also, for the life of me I cannot figure out how to write the code so the email address on the author.php page is “hidden” … in other words, the name is displayed, but when you click on the link, it would do the href=mailto…
    I was able to do a similar thing for the author’s website, but just cannot get the email to work.

    You can see my site at http://www.fcaoneyearbible.com … click on any author’s name, and this is the page I’m speaking of.

    Thanks for your help!

    Thread Starter fcaoneyearbible

    (@fcaoneyearbible)

    Oh … I was speaking of the Get-author-profile plugin.

    Certainly the plugin was written to make thing a smidgen easier to collect and display author info, but I can’t answer on whether the plugin will make things easier for you. :)

    With what you’re doing in author.php, first you need to call the get_author_profile() function in the template, like so:

    <?php get_author_profile(); ?>

    Place that at the top of the template file. Its purpose is to make various author variables available for the next step:

    <?php author_profile('firstname'); ?>

    That displays the first name of the author. See the plugin’s link above for the various bits of author info you can display through author_profile().

    For a mailto link, do something like:

    <a href="mailto:<?php author_profile('email'); ?>"><?php author_profile('nickname'); ?></a>

    which inserts the email address as a mailto, using author’s nickname as link text. A more complicated version (but well worth it):

    <a href="<?php echo antispambot('mailto:' . author_profile('email', false)); ?>"><?php author_profile('nickname'); ?></a>

    This passes the author’s email through WordPress’ antispambot() function, translating the address into HTML character entities and making it difficult for email (spam) harvesters to collect addresses off your site.

    Thread Starter fcaoneyearbible

    (@fcaoneyearbible)

    Ok … I think if I’m understanding you, then all the instructions written at http://codex.wordpress.org/Author_Templates#Setting_the_Value_of_Current_Author are assuming I don’t have your plug in? Is that right?

    Or do I still need the info at the top of my author.php to set the current author?

    Thread Starter fcaoneyearbible

    (@fcaoneyearbible)

    AHHH … I finally got that Email link to work on my author.php page … THANKS FOR THAT!

    I would still be curious if your plug in eliminates the need for the set current author stuff! Thanks a bunch!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Get author profile plug in – What does it do?’ is closed to new replies.