Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author DBAR Productions

    (@dbar-productions)

    The member directory shortcode and the contact form shortcode should NOT be on the same page.

    If you do NOT want a separate contact form page, then you do not even need to use the contact form shortcode, just check the option to use a contact form but leave the contact form page select option set to “None” and then the contact form will be automatically generated on the directory page when a contact link is clicked.

    Also, you need to add some members to the directory via the admin dashboard in the Member Directory section. Members are a custom post type and are NOT related to any users you already have registered with your site. You need to set them up manually yourself in the member directory.

    Please note that there is EXTENSIVE built-in help! From any of the member directory pages in your admin dashboard, just click on the “Help” tab in the upper right corner to drop down the help panel. Lots of info in there on the options, shortcodes, and how to set things up.

    Thread Starter Julmimi

    (@julmimi)

    Ok thanks for your answer.
    But, if you go here: https://danisports.fr/equipe-danisports/

    You see : Message, if you click on, you on the contact page generate by the plugin, but i have mani contact form, i need just one contact form.

    Plugin Author DBAR Productions

    (@dbar-productions)

    Yes, because it looks like you made several shortcode directories on the same page, so if the contact argument is in the URL (when you click on message), every one of those shortcodes is going to return a contact form. That’s the way shortcodes work… they are not aware of each other, they just return pure html content back to WordPress.

    If that’s the way you are going to set up your directory, using multiple directory shortcodes, then you do need to use a completely separate page for the contact form. Usually that would be your “contact” page, but you already have a contact page set up. So, either you need to use the PTA contact form shortcode on that contact page and have it handle all of your contact needs, or you need to create a second contact page for use just with the directory.

    Either way, you will need just the contact form shortcode on its own page, then once you have that set up, select that page for the contact form page option (instead of None), and everything will work fine. Additionally, that contact page will work all by itself and have the list of all your members pre-populated, so they don’t have to go through the member directory first to select a recipient. Unless there is something on that existing contact form page you really need to do differently, I would just replace your existing contact form page form with the shortcode for the pta contact form, and set that to be your contact form page for the directory options.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Problem with contact form’ is closed to new replies.