Contact Form by BestWebSoft Shortcode

Below, you’ll find a detailed guide on how to add the Contact Form Shortcode to your WordPress website, including its parameters, examples, and PHP function code. Additionally, we’ll assist you with common issues that might cause the Contact Form Plugin shortcode not to show or not to work correctly.

Before starting, here is an overview of the Contact Form Plugin and the shortcodes it provides:

Plugin Icon
Contact Form by BestWebSoft – Advanced Contact Us Form Builder for WordPress

"Contact Form by BestWebSoft is a robust WordPress plugin designed to create advanced contact us forms. Highly customizable, it simplifies form building for seamless user interactions."

★★★★✩ (289) Active Installs: 60000+ Tested with: 6.3.2 PHP Version: false
Included Shortcodes:
  • [bws_contact_form]

Contact Form [bws_contact_form] Shortcode

The ‘bws_contact_form’ shortcode from the Contact Form Plugin is used to display a contact form on a WordPress site. It allows users to customize form fields like name, email, subject, and message. It also supports file attachments and GDPR compliance.

Shortcode: [bws_contact_form]

Parameters

Here is a list of all possible bws_contact_form shortcode parameters and attributes:

  • id – Unique identifier of the contact form.
  • lang – Language of the displayed contact form.

Examples and Usage

Basic example – Display a contact form using its ID

[bws_contact_form id=1 /]

Advanced example – Display a contact form by specifying its ID and the language. The form will first try to load by ID, but if not found, it will try to load by language.

[bws_contact_form id=1 lang='en' /]

Advanced example – Display a contact form by specifying its ID and the language. If the language is not available, the form will load in the default language.

[bws_contact_form id=1 lang='fr' /]

PHP Function Code

In case you have difficulties debugging what causing issues with [bws_contact_form] shortcode, check below the related PHP functions code.

Shortcode line:

add_shortcode( 'bws_contact_form', 'cntctfrm_display_form' );

Shortcode PHP function:

Code file location:

contact-form-plugin/contact-form-plugin/contact_form.php

Conclusion

Now that you’ve learned how to embed the Contact Form Plugin shortcode, understood the parameters, and seen code examples, it’s easy to use and debug any issue that might cause it to ‘not work’. If you still have difficulties with it, don’t hesitate to leave a comment below.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *