D
D
Dmitry2018-02-24 09:14:43
WordPress
Dmitry, 2018-02-24 09:14:43

(WordPress) How to implement a Q&A section?

Requires the most simple plugin for WordPress, the type of "question-answer". A user asks a question, an admin gives an answer, no further discussion, no registration, etc. Ideas?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Yanchevsky, 2018-02-24
@MaKvc

1. Create a page,
2. allow comments on it,
3. in the WP settings, limit comments to two levels and uncheck that users must be registered to comment.
4. Hide the "Reply" link in the comments for everyone except administrators (or just registered ones). is_user_logged_in or current_user_can( 'manage_options' ) functions.
If you don’t want to get into the code at all, then you can hide it using css:

.comment-reply-link {
    display: none;
}

.logged-in .comment-reply-link {
    display: inline;
}

The code can be added in Appearance -> Customize -> Additional Styles.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question