Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

Q&A Worpress plugin

Hello,

I`m trying to find a free Question and Answers form to my wordpress blog, and I do not need the question to be shown until the admin approve it or answer it, exactly the same as comment approval process!

I tried to find a good plugin could help me to create a page for that, but nothing works good,

Hint : I am using the latest version of Wordpress, also I`m using the Arabic version of it!

Thanks.

5 Answers

Zac Gordon, I appreciate that, but I had some issues same as the custom post type and custom fields works fine and great but when I walked step by step with your videos and filled out the fields I created for the custom type (Name, Question and Answer) and press (preview or publish) it gives just the Title without any data from the fields!!!

Also, The Gravity Forms + Custom Post Types`s plugin is very old, just compatible till the version 3.3.2 of wordpress.

Zac Gordon
Zac Gordon
Treehouse Guest Teacher

Did you double check on the the_field('question') in the template?

Yeah, at the moment the plugin is still working and the best solution I could find on this :-\

The only well-maintained WP plugin I've seen for this purpose is http://premium.wpmudev.org/project/qa-wordpress-questions-and-answers-plugin/ but it's not free, it's $20 USD. Knowing WPMU and having purchased there in the past, it will be quite rock solid and if not already translated to Arabic, should be translation ready out of the box.

Paul Graham Thank you so much, Actually yes I have seen this plugin and it's really cool, but am trying to know if there`s any other free plugins may help! Thank you again

Zac Gordon
STAFF
Zac Gordon
Treehouse Guest Teacher

I'm curious if a solution using post types and Gravity forms could work for this. How does the Q & A work exactly?

Hey Zac Gordon, First of all thank you so much for the helpful materials about Wordpress.

The Q&A I need is a simple page that allow any user to ask a question but to not be shown until the admin answer and approve it, same as comments with check that the admin should approve all comments!

Thank you

Zac Gordon
STAFF
Zac Gordon
Treehouse Guest Teacher

I would suggest creating a custom post type with a field for the question and a field for the answer. Then use Gravity forms to allow someone to submit a question, the right person gets an email notice, goes in and adds an answer and then posts it live. Then people can comment on it like a normal post. Or did you have something more in mind like StackOverflow?

Thank you Zac Gordon for this, I'll try this very soon, and I'll tell you the result! I hope it will work, Thank you so much and ???? (Shokran) in Arabic.

Hello Zac Gordon, I made a new custom post type and I added three fields, Name, Question and Answer, but I cant understand how to use the gravity forms, I didt find any plugin support the new version of wordpress!

And I can't understand how could the user(any user) submit a question, then I directly answer or remove or spam it, exactly the same as comments!

I need your help and thank you a lot :).

Omar: Gravity Forms is another commercial plugin. It's very common and high quality plugin for creating forms and contains a lot of security features. Probably what you're going to have to do if you don't wish to spend anything is accept user data into your own database and make sure it's sanitized by yourself. Accepting user input is something many WP developers never bother to learn and it's important.

http://www.gravityforms.com http://codex.wordpress.org/Data_Validation http://codex.wordpress.org/Validating_Sanitizing_and_Escaping_User_Data

As for keeping it spam free, you have several options but the easiest is probably to run the questions through Akismet or something similar. There are also anti-spam plugins you can use on WP but I can't suggest which one would have a good API.

http://akismet.com/development/api

Paul Graham , Thank you so much for your help, I'll take a look on these, as same as I do not have that time to done this, it seems a little bit complicated and need to focus.

Thank you again, I really appreciate your help.

Zac Gordon , I would love to thank you, It is done and works fine now, I used the custom post type and it works cool.

Thank you so much for help.