Jupa – Post Type Field for Contact Form 7

Description

Post Type Field for Contact Form 7 adds three new field types to Contact Form 7: a drop-down menu, a group of checkboxes, and a group of radio buttons. Each one is automatically filled with the titles of posts from any post type you choose (posts, pages, products, or any custom post type registered on your site).

This is useful when you want visitors to pick from a list that already exists in your content, such as choosing a location, category page, product, or any other custom post type entry, without maintaining that list by hand inside the form.

Features

  • Three form-tag types: drop-down menu, checkboxes, and radio buttons.
  • Works with any public post type, including custom post types.
  • Choose the ordering (orderby and order) of the listed posts.
  • Limit how many posts are shown, or show all of them.
  • Full integration with the Contact Form 7 tag generator (visual UI, no manual tag writing required).
  • Supports the standard id: and class: tag options, the same way native Contact Form 7 fields do.
  • Supports required-field validation.

Usage

  1. Edit a Contact Form 7 form.
  2. Open the “Insert form-tag” menu and choose one of “posts drop-down menu”, “posts checkboxes”, or “posts radio buttons” (they appear at the end of the list).
  3. Select the post type to pull posts from, the sort order, and (optionally) how many posts to show.
  4. Insert the tag and save the form.

Installation

  1. Make sure Contact Form 7 is installed and active.
  2. Upload the plugin files to the /wp-content/plugins/jupa-post-type-field-for-contact-form-7 directory, or install the plugin through the WordPress plugins screen directly.
  3. Activate the plugin through the “Plugins” screen in WordPress.
  4. Edit any Contact Form 7 form and use the new field types from the tag generator.

FAQ

Does this plugin work without Contact Form 7?

No. This plugin only adds new field types to Contact Form 7 and has no effect if Contact Form 7 is not installed and active.

Can I use it with custom post types?

Yes. Any public post type registered on your site (including ones added by other plugins, such as WooCommerce products) is available from the post type selector.

Does it show unpublished posts?

No, only published posts are listed.

What value gets submitted, the post title or the post ID?

The post title is used as the submitted value, so form notifications and stored submissions show a readable name instead of a numeric ID.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Jupa – Post Type Field for Contact Form 7” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.0.0

  • Initial release. Adds drop-down, checkbox, and radio button field types populated from posts, with tag generator support for all three.