WordPress Comment Values
-
Hey, this is something I’m sure has been covered but I can’t find anything relevant from a WordPress and web search.
Basically in my comments.php form I have added the value text ‘Name’, ‘Email’, ‘Website’ and ‘Comments…’ respectively. I added these text value fields so that the user would know what they were. However Name, Email and Website are not required, so if a user fills out the comment field but no others the comment is submitted as being by ‘Name’ with the email address ‘Email’ and the website ‘Website’. Does that make sense?. What I want to do is say to WordPress, if the default values have not been changed then ignore or change them. For example, if the user leaves Name as Name then convert it to ‘Anonymous’ before displaying it. If the user leaves website as ‘Website’ then they don’t have a website, rather than it showing their website as being https://Website. The same for email, if the value ‘Email’ is unchanged it displays the commenters email as being ‘Email’.
I don’t think there is anything within WordPress to achive this, but perhaps a Javascript solution to say if the name, email and website values and Name, Email and Website then remove/convert them? Would this be possible?
Any help is greatly appreciated.
Thanks
- The topic ‘WordPress Comment Values’ is closed to new replies.