image required on every question and answer

6.28K viewsGeneral
0

hi, is there any way to set the image as required on every question or answer?
Every user that post question or answer MUST upload an image.

Thanks

1

The only way i can think of is to do this with Advanced Custom Fields. You can create custom fields there, add them to the anspress editor and then set it as required.

commented on answer

Yes, I agree. Simplest solution without getting your hands dirty 🙂

Question 1: can i create what i want using the free ACF version or paid version?
Question 2: this method needs to edit the anspress php file?

Q1: Yes the free version should do the job, pro is not needed
Q2: No you don’t need to edit any php file with this plugin

sorry but i can’t understand the phrase “add them to the anspress editor”, how can i add a custom field to anspress editor?

Please read this article: https://torquemag.io/2016/04/use-advanced-custom-fields-depth-tutorial/
Or simple google for more documentation of this plugin, since this is not a support forum for ACF

You are viewing 1 out of 2 answers, click here to view all answers.