Mystrique
Member
Posted 6 years ago #
Hi,
I would like to add a simple feedback form on each post and it will email directly to the author of the respective post. Note : There might be more than one author.
What is the best way to do this?
Will it be possible to use the PHP mail() function?
How to extract the author email and use it in the feedback form?
Kindly advise.
Thanks,
Mystrique
Member
Posted 6 years ago #
Nevermind.
I have figured an alternative way for this.
Regards,
Which is?
If you can advise us of your methods, it might help someone else.
Mystrique
Member
Posted 6 years ago #
Hi katie1,
I used the comment form as the feedback form.
I disabled the comment display. :)
All the author will received the feedback to their email since I enable the comment notification.
Thats all. :)
Thanks Mystrique - I might even attempt this myself. I too have multiple authors.
Thanks to your reply
Hi
Please kindly advise how to disable "comment display" so my blog visitors can directly contact my other authors of the their posts?
Thank you!!
I guess you could define a category for posts for which you want this type of feedback, then on your single.php theme file or whichever, you would use a conditional statement like this (where category_id is the number of your special category:
<?php if (!in_category('category_id') ): ?>
// code for displaying comments
<?php endif; ?>