Hi All - I'm interested in setting up a pay-to-post mechanism, using the Paypal Add-On, that works like this:
- the form contains post fields and is integrated with Paypal via the Add-On, such that the post is not published until payment is received;
- the redirect for the form is set-up in such a way that, once payment is received, the site redirects the user to the post he or she has just submitted
- only the person that has just paid to submit the post can see the post
I've got all this working except for the third step. I know how to make the third step work with a change to the functions file which automatically sets posts submitted through the form to private, but for the person who entered the post to be able to see it, he or she needs to be a logged in user/member. I can make that happen with a membership plugin but it occurred to me last night that there might be another way, by which I wouldn't need to worry about creating users/members.
The idea I have is this: if possible, I'd like to be able to:
- add a bit of code to the functions file which makes post entries through a specific form password-protected posts;
- add a single line text field to the form which asks the user to enter a password for the post
- somehow link the password that goes into that text field as the password WordPress requires for access to the submitted post
Is that possible please? If so, can anyone help please with the code that would be required for the functions.php file?
Many thanks in advance for any help.
Best regards
Richard