• Resolved skatospag

    (@skatospag)


    Hey guys,

    I needed to add the Author name on the Recent post widget extended module.

    I then edited the includes/functions.php file to add :
    $html .= '<h3 class="authorname">' . ( the_author() ) . '</h3>';in the loop.

    That works fine in front office, the author name of the recent posts appears. The problem now is that this same author name also appears outside of the module, directly in the layout container.
    Can someone help me to make it desappears ?

    You can have a look of the bug here : http://octaaave.com/dev/islean/ on top of the contact form.

    I am using Gantry framework.

    Many thanks!

    https://ww.wp.xz.cn/plugins/recent-posts-widget-extended/

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

    (@satrya)

    Please change the the_author() with get_the_author()

    Anyway, if you modify the plugin files, you’ll lost your changes when you updated the plugin.

    Thread Starter skatospag

    (@skatospag)

    Hey!

    Thank you for you help, it works fine now 🙂
    I saved my files and modifications before updating it.

    A++

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

The topic ‘Adding Author name in the loop’ is closed to new replies.