add this to your function.php: add_filter(‘wp_nav_menu_items’,’my_login_func’, 10, 2); function my_login_func($nav, $args) { ob_start(); wp_loginout(‘index.php’); $loginoutlink = ob_get_contents(); ob_end_clean(); //change primary to secondary if u use secondary menu if( $args->theme_location == ‘primary-menu’ ) { if(is_user_logged_in()) { $user=wp_get_current_user(); $name=$user->display_name; // or user_login , user_firstname, user_lastname $nav .= ‘<li><a href=”YOURLINK”>| Hi, ‘.$name.’ |</a></li>’; $nav .= ‘<li>’. $loginoutlink .'</li>’; } else { $nav .= ‘<li><a href=”YOURLINK”>| Login/Register |</a></li>’; } } return $nav;
Hello, Already working on it. Upcoming version is focused on improving AnsPress form and adding custom fields. Cannot announce release date yet but I will keep posting about new features.
This is the shortcode show anonymous i have read this link but its still showing anonymous..
Hello michal, Found your issue. In AnsPress option “question slug” you have set it as forum but forum slug is already being used for AnsPress base page. Hence its conflicting. Just change question slug to “question” and it will be fine.
Hi! I have the same issue, I edited the file in this way: #: addons/free/tag.php:382 msgid “Type and hit enter” msgstr “Scrivi e premi invio” but in the form the text is always in english? can be the server cache? Thanks a lot