• Resolved alpha2

    (@neoseeyou)


    Hello Hector

    I need to help to display author nice name, actually the plugin display author’s name. As i have a buddypress website I want to display everywhere only the nice name of each user.

    I use this code inside a template file <?php if(is_page(172)){ wpp_get_mostpopular("range=all&rating=1&stats_author=1&stats_category=1&thumbnail_width=210&cat=24,10,26,1,23,28,21,13,22,27,9,31,29,30,20,25&post_html='<li>{thumb}<div id=title>{title}</div><div id=stats>{views} vues</div><div id=auteurmin>Auteur: {author}</div><div id=catmin>Catégorie: {category}</div><div id=rating>{rating}</div></li>'"); }?>

    Tomorrow the website is lunch 😉

    Thank you very much for your help

    https://ww.wp.xz.cn/plugins/wordpress-popular-posts/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    Hi @neoseeyou!

    This is something that you can’t tweak via parameters, unfortunately. To have WPP display authors’ nice name instead, you’ll have to modify WPP’s code a little bit:

    1. Go to Plugins > Editor and pick WordPress Popular Posts from the dropdown.
    2. Find this line (as of ver. 3.3.1) and change 'display_name' to 'user_nicename'.
    3. Hit the Update file button to save changes.

    Keep in mind that any changes you make to plugins’ code will be lost after every update, so bookmark this topic for future reference.

    Thread Starter alpha2

    (@neoseeyou)

    Thank you Hector!

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

The topic ‘Display author nice name’ is closed to new replies.