Contact Form 7 Ìtumọ̀ Yorùbá: – Post Fields

Àpèjúwe

Contact Form 7 is a fantastic plugin for form. The post-fields extension enables you to create image drop-down-menues, checkboxes and radio-buttons based on posts or other kinds of content (custom post types).

Features of post fields

  • beautiful drop-down-menues, checkboxes and radio buttons with post image, excerpt and meta data
  • selection of the post type (posts, pages, attachments, custom post types)
  • selection and limitation of categories (taxonomies)
  • customized/individual formatting of the label
  • configuring the value attribute
  • pretty post hyperlinks in the message body
  • customized sorting of the post type
  • Display a search box on drop-down-menues
  • limitation of the post type based on its particular status (published, draft etc.)
  • The default value of the field can easily be selected by using $_GET or $_POST variables (see FAQ).

Required Plugin

  • Contact Form 7 by Takayuki Miyoshi Ìtumọ̀ Yorùbá: – Contact Form 7 can manage multiple contact forms, plus you can customize the form and the mail contents flexibly with simple markup.

Àwọn àwòrán ìbòjú

Ìgbéwọlẹ̀

  1. Download and install the required Contact Form 7 Plugin available at https://wordpress.org/extend/plugins/contact-form-7/
  2. Upload ‘contact-form-7-post-fields’ to the ‘/wp-content/plugins/’ directory, or install the plugin through the WordPress plugins screen directly.
  3. Activate the plugin through the ‘Plugins’ screen in WordPress.
  4. You will now have a “posts drop-down-menu”, “posts image drop-down-menu”, “post checkboxes” and “post radio buttons” tag option in the Contact Form 7 tag generator.

FAQ

Where can I find the new post fields and how can I use them?

  1. Make sure that you have installed and activated the required plugin Contact Form 7.
  2. In the menu, navigate to the item “Contact”, create a new or edit an existing form.
  3. You can find 4 new fields in the tab “Form” now: “posts image drop-down-menu”, “posts drop-down-menu”, “post checkboxes” and “post radio buttons”.

Why canÌtumọ̀ Yorùbá: ’t I find my own type of content (custom post type) in the list?

The only types of content displayed are those declared as public.
See register post type.

How can I make my form in the front end use a standard value automatically?

This can easily be done by using $_GET or $_POST variables.

  1. In the post field shortcode, add the option “default:get” or “default:post” (instructions), e.g. [post_select post_select-1 publish default:get post-type:post value-field:title orderby:title order:DESC “%title%”]
  2. On your website, move to the form with the following $_GET parameters: http://www.yourdomain.at/contact/?field_name=post_id

If you have integrated your form into a single post template, you can use “default:current_post” to set the default value equal to the current post.

What kind of post meta keys can be used for the label?

  1. Single text meta keys
  2. Sequential arrays will be changed in a string list (comma seperated)
  3. Associative arrays are no supported

How can i style the posts image drop-down-menu?

The posts image drop-down-menu is build with the jQuery select2 libary.
You can style with CSS the drop-down-menus using the class “select2” and/or “select2-container”.

How can i print pretty post hyperlinks in the message body

  1. Select the “Permalink” option from the value field in the post field generator.
  2. Check the “Use HTML content type” box in the Mail setting.

I found a bug, what shall I do?

If you have found a bug in my plugin, please send me an email with a short description.
I will fix the bug as soon as possible.

You like my plugin and youÌtumọ̀ Yorùbá: ’d like to support me?

Thank you very much!
In case you want to show how much you appreciate my work, IÌtumọ̀ Yorùbá: ’d be very grateful if you could give me positive rating with WordPress-Page and/or donate a small amount to me.

Àwọn àgbéyẹ̀wò

Ẹrẹ́nà 14, 2024
This extension to CF7 opens for a whole variety of use cases and creative solutions. If you combine it with Conditional Fields for CF7 the possibilities are endless. Thanx for this solution.
Igbe 11, 2021
Happy to have discovered this extremely useful plugin. You can, for example, automatically populate the labels in a dropdown field with the titles of a custom post type and get their values from a custom field created with ACF. Good job!
Ọ̀pẹ 18, 2020
This plugin fills a need that isnÌtumọ̀ Yorùbá: ’t addressed by CF7 alone. And if for any reason you need extrahelp (like using hooks), you can ask for support. Thanks to the author for his kind help 🙏
Ọ̀pẹ 13, 2020
Hi, I highly recommend this plugin, easy to use and i can easy import post to contact form 7. Wery thanks for author this plugin Mateusz
Ka gbogbo àwọn àgbéyẹ̀wò 34

Àwọn Olùkópa & Olùgbéejáde

“Contact Form 7 Ìtumọ̀ Yorùbá: – Post Fields” jẹ́ ètò ìṣàmúlò orísun ṣíṣí sílẹ̀. Àwọn ènìyàn wọ̀nyí ti ṣe ìkópa sí plugin yìí.

Àwọn Olùkópa

A ti túmọ̀ “Contact Form 7 Ìtumọ̀ Yorùbá: – Post Fields” sí àwọn èdè agbègbè 2. Ọpẹ́lọpẹ́ fún àwọn atúmọ̀ èdè fún àwọn ìkópa wọn.

Túmọ̀ “Contact Form 7 Ìtumọ̀ Yorùbá: – Post Fields” sí èdè rẹ.

Ṣe o nífẹ̀ẹ́ sí ìdàgbàsókè?

Ṣàwárí koodu, ṣàyẹ̀wò ibi ìpamọ́ SVN, tàbí ṣe àgbékalẹ̀ sí àkọsílẹ̀ ìdàgbàsókè nípasẹ̀ RSS.

Àkọsílẹ̀ àwọn àyípadà

2.6.0

  • Dev Ìtumọ̀ Yorùbá: – Migrated image-select and image-checkbox validation to the new SWV (Schema-based Validation) introduced in Contact Form 7 5.6
  • Dev Ìtumọ̀ Yorùbá: – Updated form tag registration to use feature arrays (name-attr, selectable-values, multiple-controls-container)
  • Dev Ìtumọ̀ Yorùbá: – Updated HTML wrapper from class-based to data-name attribute
  • Dev Ìtumọ̀ Yorùbá: – Added aria-describedby attribute for improved accessibility on validation errors
  • Dev Ìtumọ̀ Yorùbá: – Removed deprecated wpcf7_validate filter based validation
  • Fix Ìtumọ̀ Yorùbá: – Moved tag generator JavaScript to external file for CF7 6.x compatibility (wp_kses filtering)
  • Dev Ìtumọ̀ Yorùbá: – Tag generator scripts now enqueued via admin_enqueue_scripts instead of inline output

2.5.8

  • Dev Ìtumọ̀ Yorùbá: – Changed Image Select Placeholder

2.5.7

  • Dev Ìtumọ̀ Yorùbá: – Add new filter for html attributes.
  • Dev Ìtumọ̀ Yorùbá: – Add meta_key and meta_type args to post query preset.
  • Fix Ìtumọ̀ Yorùbá: – Pypass correct number of decimals on numeric meta values.

2.5.6

  • Dev Ìtumọ̀ Yorùbá: – Add new WP Query args meta_key and meta_type
  • Dev Ìtumọ̀ Yorùbá: – Add filter “wpcf7_’.tag_name.Ìtumọ̀ Yorùbá: ’_’.basetype.Ìtumọ̀ Yorùbá: ’_item_label” to all modules

2.5.5

  • Dev Ìtumọ̀ Yorùbá: – Add new filter for label, excerpt and item attributes

2.5.4

  • Dev Ìtumọ̀ Yorùbá: – Add new constant WPCF7_POST_FIELDS_PLUGIN

2.5.3

  • Dev Ìtumọ̀ Yorùbá: – Add filter “wpcf7_’.tag_name.Ìtumọ̀ Yorùbá: ’_’.basetype.Ìtumọ̀ Yorùbá: ’_item_label” to all modules

2.5.2

  • Dev Ìtumọ̀ Yorùbá: – Tested up with WordPress 5.4
  • Dev Ìtumọ̀ Yorùbá: – Add filter “wpcf7_mytag_defaults”
  • Dev Ìtumọ̀ Yorùbá: – Code optimizations

2.5.1

  • Dev Ìtumọ̀ Yorùbá: – Tested up with WordPress 5.2.1
  • Dev Ìtumọ̀ Yorùbá: – Star rating included

2.5.0

  • Dev Ìtumọ̀ Yorùbá: – Tested up with WordPress 5.2
  • Dev Ìtumọ̀ Yorùbá: – Code optimizations
  • Dev Ìtumọ̀ Yorùbá: – Improvement for better main instance call
  • Fix Ìtumọ̀ Yorùbá: – Missing Field “post_radio” and “post_image_radio

2.4.1

  • Dev Ìtumọ̀ Yorùbá: – Removed the   in the checkbox rendering

2.4.0

  • Feature Ìtumọ̀ Yorùbá: – Search box option for posts drop-down menus
  • Dev Ìtumọ̀ Yorùbá: – Load select2 libary on posts drop-down menues with the multiple attribute
  • Dev Ìtumọ̀ Yorùbá: – Add placeholder filter for select fields and field post data
  • Dev Ìtumọ̀ Yorùbá: – Add field post data filter
  • Dev Ìtumọ̀ Yorùbá: – Improvement for better scripts and style loading
  • Fix Ìtumọ̀ Yorùbá: – No include blank on on posts drop-down menu with the multiple attribute

2.3.2

  • Image select attachment otimiziation

2.3.1

  • Fix by the ACF Meta Integration

2.3.0

  • Improvement for search, replacing and formatting post meta fields
  • Fixed showing correct image on image select field (post type attachment)
  • Code optimizations

2.2.1

  • Improvement for search and replacing meta fields in the label

2.2

  • Add support for meta data in value field
  • Add support for excluded terms
  • Fix by getting the image URL from Post or Attachment
  • Renamed Parameter “category-relation” to “tax-relation”

2.1

  • Add support for attachments
  • Add new post status “inherit”
  • Add new value field “thumbnail”

2.0

  • Add WPML compatibility for getting posts
  • Add the post number option to the fields
  • Changed the “field_name_get_posts” filter to “wpcf7_field_name_get_posts”
  • Code optimization for getting posts

1.9

  • Select2 Libary Update to 4.0.5
  • Code and performance optimizations
  • Translation fixes

1.8

  • Add new default value option “current_post”

1.7.1

  • Bugfix in posts image fields css file (clearfix)

1.7

  • CSS optimizations in all posts image fields

1.6

  • Code and performance optimizations
  • Changed the name of the image size to “wpcf7-post-image”
  • Changed the order of the form tags
  • Introduction of a new “posts image checkboxes” and “posts image radio buttons” field
  • New “Meta Data” feature for all image post fields
  • New value field “Permalink”, wich prints pretty post hyperlinks on the mail body
  • Add new translations

1.5

  • Bugfix in “posts image drop-down-menu” when select multiple and include_blank
  • Bugfix in “posts image drop-down-menu” (dashicons) when no thumbnail is available
  • Add “permalink” and “author” tags to the label format

1.4

  • Introduction of a new “posts image drop-down-menu” field
  • Changed the deprecated class WPCF7_Shortcode to WPCF7_FormTag
  • Bugfix when the “posts drop-down-menu” has the option “include_blank”

1.3

  • Post meta keys available in the label formatting

1.2

  • Changed the deprecated function wpcf7_add_shortcode to wpcf7_add_form_tag
  • Translation fixes

1.1

  • Translation fixes

1.0

  • Initial Release
  • Check compatibility with latest Contact Form 7 and WordPress Version