If you look on my
arildkrovoll.no
On frontpage, wpdicuz presents the comments with correct name
But
when you click on these comments,
my name appears as name
How do I fix that?
Hi @fjelldryas,
For logged in users wpDiscuz shows the Display name as a comment author name.
Hi @fjelldryas,
For logged in users wpDiscuz shows the Display name as a comment author name.
Thats the problem
I have and dont want any users on my site
Yes it show the name of admin -- thats me --Arild.
I dont want that
I want it to show the name of the person that left the comment!
NB
The comments are lifted from my Instagram feed
NB2
They who leave comments are best friends and collagues - people I know.
Hi @fjelldryas,
I'm really sorry, but there is no option. You should use the following code, please put it in your current active theme functions.php file:
add_filter('wpdiscuz_comment_author', 'wpdiscuz_my_author', 10, 2);
function wpdiscuz_my_author($author_name, $comment) {
return $comment->comment_author;
}
Either it didnt work Or I was unable to fix this,' the functions.php looks like this now:
<?php
/**
* look functions and definitions
* @package look
*/
add_filter('wpdiscuz_comment_author', 'wpdiscuz_my_author', 10, 2);
function wpdiscuz_my_author($author_name, $comment) {
return $comment->comment_author;
}
define( 'LOOK_THEME_VERSION', '4.4' );
//make theme can be translated
load_theme_textdomain( 'look', get_template_directory() . '/languages' );
NB
you should know, my web host moved my site to a new server - now I have sseveral problems, among them unable to change back php from 7.1 to 5,6 vers. Guess Ill have to wait until Monday before that is fixed...
if ( ! function_exists( 'look_ruby_theme_setup' ) ) {
function look_ruby_theme_setup() {
if ( ! isset( $GLOBALS['content_width'] ) ) {
$GLOBALS['content_width'] = 1200;
}
if ( ! isset( $GLOBALS['look_ruby_unique'] ) ) {
$GLOBALS['look_ruby_unique'] = array();
}
add_theme_support( 'automatic-feed-links' );
add_theme_support( 'title-tag' );
add_theme_support( 'html5', array( 'search-form', 'comment-form', 'c