I tried to test the blog section on my website, when I tried to add a new comment to the blog, I filled the fields of message, name and email address,
after I pressed submit I saw the comment, but the name of the comment’s author was not the name when I filled before.
The name of all the comments is the value of “Display name publicly as” in the users section in the dashboard.
How can I change that the name of the comment’s author will be shown and not the anything else?
Thank you.
Please see: this relevant code in WordPress core. If you are logged into the site when posting a comment, the name is forced to the user name as you've seen in your tests.
So the answer to your question is that you need to logout before posting.
Related
Woocommerce checkout throws an error "An account is already registered with your email address", when you did not log in before checkout.
This is so clumsy. What I want in this case is to immediately show a popup with a login box, with the email address already populated.
It looks a little like this question: Woocommerce: Override login required for existing email. Add order to user account
But it is different.
I can't find anything that comes close.
I have looked for a solution as well. The closest I have found is the plugin linked below.
What I like is that when an email is added it will recognize if they are a past customer and automatically reveals a password input box underneath the email box. https://www.checkoutwc.com
This article describes more of what I mean under Login Lookup heading: https://oceanwp.org/blog/optimizing-your-woocommerce-checkout-page-with-checkout-for-woocommerce/
I have been testing it and so far I am happy with it. I signed up for the monthly subscription and will see if it helps increase sales. We get a 7-day free trial to play with it.
I also agree that Woo's solution is a little clumsy. :)
Best of luck! :)
I am using wordpress for my site mysite.com (just considered as an example) and in the setting of profile i enabled to show author box at the bottom of the post.
So at the bottom of the post, I see a box with some image and on the side written as
Written by shyma prasad" Where shyam prasad is a link text which links to www.mysite.com/author/admin.
My profile data is as follows.
My profile display name is shyam prasad So the written by shows shyam prasad its right. My nickname is shyam.
My login name is shyam_123. for username in mysite.com/wp-admin page
I have few questions:
In the url link www.mysite.com/author/admin what is the admin, where is came from.
And also when i open this url it shows no content found
There is only one user and is administrator and all the posts are authored by admin. Recently I changed the displayname from admin to Shyam Prasad
I want www.mysite.com/author/admin to be www.mysite.com/author/shyam. I tried using plugin called edit author slug, but it didnt change admin with shyam in the url.
Also i want www.mysite.com/author/shyam to show author archive.
Can anyone help
add_action('init', 'cng_author_base');
function cng_author_base() {
global $wp_rewrite;
$author_slug = 'profile'; // change slug name
$wp_rewrite->author_base = $author_slug;
}
I am not clear what could be your problem. May be it is wrong impact as you changed the admin name to your name. I would suggest you to take the following steps.
create one more account with "your name2" as administrator.
Delete the existing account.
Move the author using "bulk action" from admin to your account.
Remove the "2" from your name.
The Answer which is given by "Vickey" is copy/paste from internet and it is to change the term “profile” instead of “author” in the url which i believe is not your problem.
You can stay in touch with me for wordpress related things.
Regards
Suyash Jain
http://linuxhacks.in
I have created a website and Now I want to write a post. The website managed by wordpress.org. The problem is, in the published page, the my email is showing on the page as author. How to hide this?
Actually I want the remove the mail from the post :
Humm, when you say hosted, is it fair to assume that you are using a hosted version or wordpress? If so, you should be able to tweak the display of your posts in your wordpress settings. For my theme, I can twiddle whether or not an author tag appears in a blog post by going to theme options > blog page. Your mileage may vary depending on your theme.
If your theme does not let you turn off the author tag, you may want to just change your name to something other than your email address. If I want a name to appear rather than an email address, I can set a displayable name in the wordpress user settings. I just edit the user to include a name string.
Does that help?
In Drupal display comments box I want to change the display username to first and last name. I have already setup the database and I know I can user $user->name to find the first and last name in my separate database table.
But my problem is, in the script where I should change it? I have looked in the comments module but I am not sure that script for viewing the comments.
Please can you tell me in which place I can find the displaying username in the comments view box in the script.
Thanks.
Do you mean you want to display the Firstname + Lastname of the comment author instead of the username while displaying the comments? If that is the case, then you can easily do that in your comment.tpl.php file instead of editing the comment module.
I am trying to add a custom field to the wordpress user profile page. For instance if I wanted to add a field where the user could put in their Linkedin, or Twitter user name, then use that value whenever the user posts a comment, or if the user is an author, to add that value in their posts.
I have a forum (bbpress) integrated so I would also like to use this value to customize the users avatar in the forums.
I am looking at the way Wordpress uses Gravatar. I would like to do something similar. However, I'm not sure where to start. I've written a couple of shortcode plugins in the past, but nothing this complicated.
Anyone have any ideas on where I should begin on this?
look at this post and this