• Resolved djbo5a5

    (@djbo5a5)


    You can leave a comment without login, but in this case, when you leave a comment, the author of the comment is set to “Author Unknown”. Is it possible to set the same comment author and assigned user of the comment automatically?when you leave a comment?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Gemini Labs

    (@geminilabs)

    The author of a review (or post_author) is the logged in user who submitted the review. If a user is not logged in, the review will not have an author. This is the same as a guest review.

    Thread Starter djbo5a5

    (@djbo5a5)

    I would like to assign a guest review to the post author. Is it possible to do this? There are lots of authors on my website with the role “Subscriber” so I want them to see only reviews in wp-admin that are assigned to their posts.

    • This reply was modified 1 year, 1 month ago by djbo5a5.
    Plugin Author Gemini Labs

    (@geminilabs)

    1. Add this code snippet to your website using the Code Snippets plugin: https://pastebin.com/5jHK5LQR
    2. Add the assigned_users="author_id" option to your review form shortcode (or enable the option in the block/widget).
    Thread Starter djbo5a5

    (@djbo5a5)

    Somehow it doesn’t work. I am using this shortcode [site_reviews_form assigned_users=”author_id” assigned_posts=”post_id”] in the custom post type. If I add the permission “Edit others” to the subscriber role, I can see other user reviews and I can edit them. If I uncheck “Edit others”, I can see only reviews that are assigned to me, but I can’t edit them. What could be wrong?

    Plugin Author Gemini Labs

    (@geminilabs)

    First of all, use either the Members plugin or the User Role Editor plugin to modify your role capabilities.

    Secondly, you asked: “I would like to assign a guest review to the post author.” The “Post Author” is the person who authored the page that you are viewing. Subscribers do not have edit_post capabilities. They cannot author pages.

    And finally, here is how to check that reviews are being assigned to the page author:

    Thread Starter djbo5a5

    (@djbo5a5)

    I am using https://www.ads-software.com/plugins/capability-manager-enhanced/ and it seems it works well. Now I can see only reviews that are assigned to me and I can respond to reviews by clicking the button “Respond”. It’s actually what I need. The only thing is that I want to hide the review title from the WP admin and leave only the review text instead. Is it possible to do this? Maybe it would be enough if the screen option “View mode” would be set to “Extended view” by default, is it possible to do this? It would be very useful to know how to set default values for other screen options.

    Plugin Author Gemini Labs

    (@geminilabs)

    It’s not possible to hide the Title on the All Reviews page and changing the view to Extended view is a user-specific setting.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to set comment author automatically for not logged in users?’ is closed to new replies.