• Resolved riecem

    (@riecem)


    I am having 2 issues.

    1. I cannot figure out how to allow someone to register as a contributor. Is there a tutorial or how-to somewhere?

    2. I want to CALL the title and content fields name and intro, respectively. If I use ACF to create the fields I want, they are not replacing the default fields, they are just adding additional fields. And they are not auto populating in the appropriate places on my site (meaning the custom fields are not displaying in PLACE of the title and content areas).

    Can anyone help me?

Viewing 15 replies - 1 through 15 (of 23 total)
  • Plugin Author Shabti Kaplan

    (@shabti)

    Greetings! I’ve been meaning to make tutorials about how to do these two things. I’ll try to do that today.

    1. To add a user as a contributor, choose main action as new user, then in the user tab choose contributor for the user role. You need to add a username, email, abd password fields

    2. For your second issue, you must go to the post tab and for title field choose custom acf field and choose the custom title field in the field below. Repeat this process for the content field.

    We are constantly trying to make this plugin more user friendly. Any more feedback will be highly appreciated.

    Thread Starter riecem

    (@riecem)

    Thank you for the response!!

    1. I finally figured out that I had to create a new ACF field group for registration fields. For some reason I thought that it would use the fields for registration from WordPress. I got it working

    2. Yeah I did that. That does correct the problem of it not populating the correct field, but it does not correct that it is a duplication of the default fields instead of a replacement. But I think that may just be a limitation of ACF not your plugin.

    One last thing
    3. Do you happen to know if there is a way to create a field that populates the manual excerpt section?

    • This reply was modified 4 years, 11 months ago by riecem.
    Plugin Author Shabti Kaplan

    (@shabti)

    Hi, i’m glad you figured out the registration process. In a future update we will have default registration fields.

    Regarding the title and content field, when you select the custom acf title field, the default one should not appear anymore on the frontend. On the back end it does appear, but you can hide it by deactivating the field group.

    For the post excerpt, this is a feature we’ve been meaning to add. There is also a way to do it through a WordPress filter hook.

    Thread Starter riecem

    (@riecem)

    On the back end if you remove those fields, they will not populate in the final post on the front end, I have tested it. If I am wrong, please let me know.

    If you have a link to show me help me get the manual excerpt working I would greatly appreciate it. Right now I am having to go in and manually copy and paste the excerpt from the custom ACF to the excerpt in the post, so that I can have custom text displaying in the archive view. It is pretty annoying.

    Plugin Author Shabti Kaplan

    (@shabti)

    On the back end if you remove those fields, they will not populate in the final post on the front end, I have tested it. If I am wrong, please let me know.

    Interesting. We will add a choice to show only on the frontend in the future so that it won’t show on back end but it will still populate in the field on the frontend.

    Here is a code snippet to populate the post excerpt from a field. Insert into your child theme functions.php file and replace the field key

    
    function acf_review_before_save_post($post_id) {
    	if (empty($_POST['acf']))
    		return;
    	// remove this filter to avoid infinite loop
      	remove_filter('acf/pre_save_post', 'acf_review_before_save_post', 9);
    	
    	$post_excerpt = $_POST['acf']['field_5d510f2208d88']; //replace with your own field key
    	
    	$post_data = array(
    		  'ID'           => $post_id,
    		  'post_excerpt' => $post_excerpt,
    	  );
    	// Update the post into the database
    	  wp_update_post( $post_data );
    
      	//add_filter('acf/pre_save_post', 'acf_review_before_save_post', 9);
    	return $post_id;
    }
    //add_filter('acf/pre_save_post', 'acf_review_before_save_post', 10);
    
    Plugin Author Shabti Kaplan

    (@shabti)

    This line

    //add_filter('acf/pre_save_post', 'acf_review_before_save_post', 10);

    should actually be

    add_filter('acf/pre_save_post', 'acf_review_before_save_post', 10);

    Hi Shabti Kaplan,

    The first thing is to wish you my congratulations for this magnificent plugin !! Thank you very much, I have ACF Repeater installed and it is fully compatible with these fields ……. it’s great.
    I wanted to ask you several things and know if they can be done or if they are planned in future updates …

    Can the user be given the option to choose their user role?

    When we are creating a registration form for a directory with different users, the ideal would be to let the user choose their role.

    Another very important option of the forms would be to be able to limit the number of publications through the form according to the user role.

    And finally, another very interesting option would be to be able to charge for submitting a form and at the same time there is a change in the role of the user who pays for submitting the form.

    With these 3 options that were added to the plugin we would have one of the best form plugin for elementor today! It would be fantastic …….

    I speak to you from the perspective of a user who does not know how to program.

    I send you a big greeting from Spain and a Thank you!

    In something that can help you, you just have to ask. a greeting

    Plugin Author Shabti Kaplan

    (@shabti)

    Oh wow thank for the kind words! I am really happy to see so many people getting good use out of our plugin!

    Our pro version is scheduled to release next week and one of the features which it will include (in a future update) is woocommerce intergration. You will be able to add products to the cart upon submitting the form and optionally be redirected to the WC checkout page. We are also looking into the option of creating a payment action that intergrates with paypal and stripe for non-woocommerce users, but that is still an idea.

    Regarding the user choosing a user role, we were gonna include that in the pro version too.

    The feature for limiting form submissions by user role, sounds like a very useful feature. I think we might put that in the version 2.1 coming soon. We’ll let you know. Thanks for that, it’s users like you that help us make the plugin even more useful!

    Thread Starter riecem

    (@riecem)

    Here is a code snippet to populate the post excerpt from a field. Insert into your child theme functions.php file and replace the field key

    Thank you for providing that. Unfortunately what you posted is above my skill level, hahaha! I would need a lot of hand holding to get that working. But thank you so much for trying! I hope you will add that functionality soon!

    R

    Thanks to you, you are fantastic.

    The payment action that integrates with paypal and stripe for non-e-commerce users would be fine.

    With those three characteristics that I have mentioned above, you can create a membership without having to install more plugins, which is what we all really want. Have few plugins but they are good. For example:

    I have 2 very interesting projects, one of donations and another of scalable commerce ,,,, I explain myself.

    With the options I have proposed I could limit the amount of products that a user role (x) can publish according to the price you pay to publish a form.

    Example:
    Free role = 1 product.
    Payment role 5 or 10 products.

    With this I have an incredible mini store directory.

    Also limiting the amount of forms that can be published we get many things.

    Example:
    CPT: Companies
    Well, I would only be interested in publishing a single company form and I would like you to publish a certain quantity of products according to the user role.

    For the donation project it would also be worth it, since you can create a product through woocommerce and link it to a form with ACF Forms elementor or to a simple personalized product CPT created without woocomerce and make the payment with stripe or paypal.

    Here you have a client and user of your plugin.

    The truth is that I have many other needs but these are the priorities.
    We will be in touch and you will know all the ideas that you can use to incorporate them in future installations since they are very good and practical at the user level that you do not know how to program with code.

    Best regards and thank you very much!

    My email is: [email protected] for everyone who wants to help them with ACF and forms, etc …

    Plugin Author Shabti Kaplan

    (@shabti)

    Hey we added the excerpt field and thanks to you we added also default user registration fields

    Thread Starter riecem

    (@riecem)

    NO WAY!!! Dude, I am so impressed. Thank you!! Digital high five, friend! Now to see if I am smart enough to figure out how to get them working!

    Thread Starter riecem

    (@riecem)

    OH no!! I think it broke the mapping for the content field. The post title and excerpt seem to be working but I cannot select the ACF field for the content. Let me know when this gets fixed because it kind of breaks my form. Thanks really appreciate all you’re doing!!

    Plugin Author Shabti Kaplan

    (@shabti)

    Question: did you use a textarea field for your content field or wysiwig?

Viewing 15 replies - 1 through 15 (of 23 total)
  • The topic ‘User Registration Tutorial AND ACF fields for title and content’ is closed to new replies.