{"id":52107,"date":"2016-11-11T22:59:10","date_gmt":"2016-11-11T22:59:10","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/cf7-post-fields\/"},"modified":"2026-02-13T08:37:24","modified_gmt":"2026-02-13T08:37:24","slug":"cf7-post-fields","status":"publish","type":"plugin","link":"https:\/\/uk.wordpress.org\/plugins\/cf7-post-fields\/","author":15194521,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"2.6.0","stable_tag":"2.6.0","tested":"6.9.4","requires":"4.0","requires_php":"","requires_plugins":null,"header_name":"Contact Form 7 - Post Fields","header_author":"Markus Wiesenhofer","header_description":"","assets_banners_color":"297fb8","last_updated":"2026-02-13 08:37:24","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.com\/donate?business=DUKJP25LKTX62&currency_code=EUR","header_plugin_uri":"","header_author_uri":"mailto:markusfroehlich01@gmail.com","rating":5,"author_block_rating":0,"active_installs":3000,"downloads":50109,"num_ratings":34,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0":{"tag":"1.0","author":"markusfroehlich","date":"2020-12-24 21:33:22"},"1.1":{"tag":"1.1","author":"markusfroehlich","date":"2020-12-24 21:33:22"},"1.2":{"tag":"1.2","author":"markusfroehlich","date":"2020-12-24 21:33:22"},"1.3":{"tag":"1.3","author":"markusfroehlich","date":"2020-12-24 21:33:22"},"1.4":{"tag":"1.4","author":"markusfroehlich","date":"2020-12-24 21:33:22"},"1.5":{"tag":"1.5","author":"markusfroehlich","date":"2020-12-24 21:33:22"},"1.6":{"tag":"1.6","author":"markusfroehlich","date":"2020-12-24 21:33:22"},"1.7.1":{"tag":"1.7.1","author":"markusfroehlich","date":"2020-12-24 21:33:22"},"1.8":{"tag":"1.8","author":"markusfroehlich","date":"2020-12-24 21:33:22"},"1.9":{"tag":"1.9","author":"markusfroehlich","date":"2020-12-24 21:33:22"},"2.0":{"tag":"2.0","author":"markusfroehlich","date":"2020-12-24 21:33:22"},"2.1":{"tag":"2.1","author":"markusfroehlich","date":"2020-12-24 21:33:22"},"2.2":{"tag":"2.2","author":"markusfroehlich","date":"2020-12-24 21:33:22"},"2.2.1":{"tag":"2.2.1","author":"markusfroehlich","date":"2020-12-24 21:33:22"},"2.3.1":{"tag":"2.3.1","author":"markusfroehlich","date":"2020-12-24 21:33:22"},"2.3.2":{"tag":"2.3.2","author":"markusfroehlich","date":"2020-12-24 21:33:22"},"2.4.1":{"tag":"2.4.1","author":"markusfroehlich","date":"2020-12-24 21:33:22"},"2.5.8":{"tag":"2.5.8","author":"markusfroehlich","date":"2026-02-13 06:57:45"},"2.6.0":{"tag":"2.6.0","author":"markusfroehlich","date":"2026-02-13 08:37:24"}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":34},"assets_icons":{"icon-128x128.jpg":{"filename":"icon-128x128.jpg","revision":1535329,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.jpg":{"filename":"icon-256x256.jpg","revision":1535329,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.jpg":{"filename":"banner-1544x500.jpg","revision":1535329,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":1535329,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.1","1.2","1.3","1.4","1.5","1.6","1.7.1","1.8","1.9","2.0","2.1","2.2","2.2.1","2.3.1","2.3.2","2.4.1","2.5.8","2.6.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":1690103,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":1690103,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":1690103,"resolution":"3","location":"assets","locale":""},"screenshot-4.png":{"filename":"screenshot-4.png","revision":1690103,"resolution":"4","location":"assets","locale":""}},"screenshots":{"1":"The post image radio buttons with meta data","2":"The posts image drop-down-menu","3":"The posts drop-down-menu","4":"Post select field generator"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[360,358,1152,361,21712],"plugin_category":[42],"plugin_contributors":[126230],"plugin_business_model":[],"class_list":["post-52107","plugin","type-plugin","status-publish","hentry","plugin_tags-contact","plugin_tags-contact-form","plugin_tags-contact-form-7","plugin_tags-form","plugin_tags-post-fields","plugin_category-contact-forms","plugin_contributors-markusfroehlich","plugin_committers-markusfroehlich"],"banners":{"banner":"https:\/\/ps.w.org\/cf7-post-fields\/assets\/banner-772x250.jpg?rev=1535329","banner_2x":"https:\/\/ps.w.org\/cf7-post-fields\/assets\/banner-1544x500.jpg?rev=1535329","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/cf7-post-fields\/assets\/icon-128x128.jpg?rev=1535329","icon_2x":"https:\/\/ps.w.org\/cf7-post-fields\/assets\/icon-256x256.jpg?rev=1535329","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/cf7-post-fields\/assets\/screenshot-1.png?rev=1690103","caption":"The post image radio buttons with meta data"},{"src":"https:\/\/ps.w.org\/cf7-post-fields\/assets\/screenshot-2.png?rev=1690103","caption":"The posts image drop-down-menu"},{"src":"https:\/\/ps.w.org\/cf7-post-fields\/assets\/screenshot-3.png?rev=1690103","caption":"The posts drop-down-menu"},{"src":"https:\/\/ps.w.org\/cf7-post-fields\/assets\/screenshot-4.png?rev=1690103","caption":"Post select field generator"}],"raw_content":"<!--section=description-->\n<p>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).<\/p>\n\n<h4>Features of post fields<\/h4>\n\n<ul>\n<li>beautiful drop-down-menues, checkboxes and radio buttons with post image, excerpt and meta data<\/li>\n<li>selection of the post type (posts, pages, attachments, custom post types)<\/li>\n<li>selection and limitation of categories (taxonomies)<\/li>\n<li>customized\/individual formatting of the label<\/li>\n<li>configuring the value attribute<\/li>\n<li>pretty post hyperlinks in the message body<\/li>\n<li>customized sorting of the post type<\/li>\n<li>Display a search box on drop-down-menues<\/li>\n<li>limitation of the post type based on its particular status (published, draft etc.)<\/li>\n<li>The default value of the field can easily be selected by using $_GET or $_POST variables (see FAQ).<\/li>\n<\/ul>\n\n<h4>Required Plugin<\/h4>\n\n<ul>\n<li><a href=\"https:\/\/wordpress.org\/plugins\/contact-form-7\/\">Contact Form 7<\/a> by Takayuki Miyoshi - Contact Form 7 can manage multiple contact forms, plus you can customize the form and the mail contents flexibly with simple markup.<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Download and install the required Contact Form 7 Plugin available at http:\/\/wordpress.org\/extend\/plugins\/contact-form-7\/<\/li>\n<li>Upload 'contact-form-7-post-fields' to the '\/wp-content\/plugins\/' directory, or install the plugin through the WordPress plugins screen directly.<\/li>\n<li>Activate the plugin through the 'Plugins' screen in WordPress.<\/li>\n<li>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.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"where%20can%20i%20find%20the%20new%20post%20fields%20and%20how%20can%20i%20use%20them%3F\"><h3>Where can I find the new post fields and how can I use them?<\/h3><\/dt>\n<dd><ol>\n<li>Make sure that you have installed and activated the required plugin <a href=\"https:\/\/wordpress.org\/plugins\/contact-form-7\/\">Contact Form 7<\/a>.<\/li>\n<li>In the menu, navigate to the item \"Contact\", create a new or edit an existing form.<\/li>\n<li>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\".<\/li>\n<\/ol><\/dd>\n<dt id=\"why%20can%27t%20i%20find%20my%20own%20type%20of%20content%20%28custom%20post%20type%29%20in%20the%20list%3F\"><h3>Why can't I find my own type of content (custom post type) in the list?<\/h3><\/dt>\n<dd><p>The only types of content displayed are those declared as public.\nSee <a href=\"https:\/\/codex.wordpress.org\/Function_Reference\/register_post_type\">register post type<\/a>.<\/p><\/dd>\n<dt id=\"how%20can%20i%20make%20my%20form%20in%20the%20front%20end%20use%20a%20standard%20value%20automatically%3F\"><h3>How can I make my form in the front end use a standard value automatically?<\/h3><\/dt>\n<dd><p>This can easily be done by using $_GET or $_POST variables.<\/p>\n\n<ol>\n<li>In the post field shortcode, add the option \"default:get\" or \"default:post\" (<a href=\"http:\/\/contactform7.com\/checkboxes-radio-buttons-and-menus\/\">instructions<\/a>), e.g. [post_select post_select-1 publish default:get post-type:post value-field:title orderby:title order:DESC \"%title%\"]<\/li>\n<li>On your website, move to the form with the following $_GET parameters: http:\/\/www.yourdomain.at\/contact\/?field_name=post_id<\/li>\n<\/ol>\n\n<p>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.<\/p><\/dd>\n<dt id=\"what%20kind%20of%20post%20meta%20keys%20can%20be%20used%20for%20the%20label%3F\"><h3>What kind of post meta keys can be used for the label?<\/h3><\/dt>\n<dd><ol>\n<li>Single text meta keys<\/li>\n<li>Sequential arrays will be changed in a string list (comma seperated)<\/li>\n<li>Associative arrays are no supported<\/li>\n<\/ol><\/dd>\n<dt id=\"how%20can%20i%20style%20the%20posts%20image%20drop-down-menu%3F\"><h3>How can i style the posts image drop-down-menu?<\/h3><\/dt>\n<dd><p>The posts image drop-down-menu is build with the jQuery <a href=\"https:\/\/select2.github.io\/\">select2<\/a> libary.\nYou can style with CSS the drop-down-menus using the class \"select2\" and\/or \"select2-container\".<\/p><\/dd>\n<dt id=\"how%20can%20i%20print%20pretty%20post%20hyperlinks%20in%20the%20message%20body\"><h3>How can i print pretty post hyperlinks in the message body<\/h3><\/dt>\n<dd><ol>\n<li>Select the \"Permalink\" option from the value field in the post field generator.<\/li>\n<li>Check the \"Use HTML content type\" box in the Mail setting.<\/li>\n<\/ol><\/dd>\n<dt id=\"i%20found%20a%20bug%2C%20what%20shall%20i%20do%3F\"><h3>I found a bug, what shall I do?<\/h3><\/dt>\n<dd><p>If you have found a bug in my plugin, please send me an email with a short description.\nI will fix the bug as soon as possible.<\/p><\/dd>\n<dt id=\"you%20like%20my%20plugin%20and%20you%27d%20like%20to%20support%20me%3F\"><h3>You like my plugin and you'd like to support me?<\/h3><\/dt>\n<dd><p>Thank you very much!\nIn case you want to show how much you appreciate my work, I'd be very grateful if you could give me positive rating with Wordpress-Page and\/or donate a small amount to me.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>2.6.0<\/h4>\n\n<ul>\n<li>Dev - Migrated image-select and image-checkbox validation to the new SWV (Schema-based Validation) introduced in Contact Form 7 5.6<\/li>\n<li>Dev - Updated form tag registration to use feature arrays (name-attr, selectable-values, multiple-controls-container)<\/li>\n<li>Dev - Updated HTML wrapper from class-based to data-name attribute<\/li>\n<li>Dev - Added aria-describedby attribute for improved accessibility on validation errors<\/li>\n<li>Dev - Removed deprecated wpcf7_validate filter based validation<\/li>\n<li>Fix - Moved tag generator JavaScript to external file for CF7 6.x compatibility (wp_kses filtering)<\/li>\n<li>Dev - Tag generator scripts now enqueued via admin_enqueue_scripts instead of inline output<\/li>\n<\/ul>\n\n<h4>2.5.8<\/h4>\n\n<ul>\n<li>Dev - Changed Image Select Placeholder<\/li>\n<\/ul>\n\n<h4>2.5.7<\/h4>\n\n<ul>\n<li>Dev - Add new filter for html attributes.<\/li>\n<li>Dev - Add meta_key and meta_type args to post query preset.<\/li>\n<li>Fix - Pypass correct number of decimals on numeric meta values.<\/li>\n<\/ul>\n\n<h4>2.5.6<\/h4>\n\n<ul>\n<li>Dev - Add new WP Query args meta_key and meta_type<\/li>\n<li>Dev - Add filter \"wpcf7_'.tag_name.'_'.basetype.'_item_label\" to all modules<\/li>\n<\/ul>\n\n<h4>2.5.5<\/h4>\n\n<ul>\n<li>Dev - Add new filter for label, excerpt and item attributes<\/li>\n<\/ul>\n\n<h4>2.5.4<\/h4>\n\n<ul>\n<li>Dev - Add new constant WPCF7_POST_FIELDS_PLUGIN<\/li>\n<\/ul>\n\n<h4>2.5.3<\/h4>\n\n<ul>\n<li>Dev - Add filter \"wpcf7_'.tag_name.'_'.basetype.'_item_label\" to all modules<\/li>\n<\/ul>\n\n<h4>2.5.2<\/h4>\n\n<ul>\n<li>Dev - Tested up with WordPress 5.4<\/li>\n<li>Dev - Add filter \"wpcf7_mytag_defaults\"<\/li>\n<li>Dev - Code optimizations<\/li>\n<\/ul>\n\n<h4>2.5.1<\/h4>\n\n<ul>\n<li>Dev - Tested up with WordPress 5.2.1<\/li>\n<li>Dev - Star rating included<\/li>\n<\/ul>\n\n<h4>2.5.0<\/h4>\n\n<ul>\n<li>Dev - Tested up with WordPress 5.2<\/li>\n<li>Dev - Code optimizations<\/li>\n<li>Dev - Improvement for better main instance call<\/li>\n<li>Fix - Missing Field \"post_radio<em>\" and \"post_image_radio<\/em>\"<\/li>\n<\/ul>\n\n<h4>2.4.1<\/h4>\n\n<ul>\n<li>Dev - Removed the &nbsp; in the checkbox rendering<\/li>\n<\/ul>\n\n<h4>2.4.0<\/h4>\n\n<ul>\n<li>Feature - Search box option for posts drop-down menus<\/li>\n<li>Dev - Load select2 libary on posts drop-down menues with the multiple attribute<\/li>\n<li>Dev - Add placeholder filter for select fields and field post data<\/li>\n<li>Dev - Add field post data filter<\/li>\n<li>Dev - Improvement for better scripts and style loading<\/li>\n<li>Fix - No include blank on on posts drop-down menu with the multiple attribute<\/li>\n<\/ul>\n\n<h4>2.3.2<\/h4>\n\n<ul>\n<li>Image select attachment otimiziation<\/li>\n<\/ul>\n\n<h4>2.3.1<\/h4>\n\n<ul>\n<li>Fix by the ACF Meta Integration<\/li>\n<\/ul>\n\n<h4>2.3.0<\/h4>\n\n<ul>\n<li>Improvement for search, replacing and formatting post meta fields<\/li>\n<li>Fixed showing correct image on image select field (post type attachment)<\/li>\n<li>Code optimizations<\/li>\n<\/ul>\n\n<h4>2.2.1<\/h4>\n\n<ul>\n<li>Improvement for search and replacing meta fields in the label<\/li>\n<\/ul>\n\n<h4>2.2<\/h4>\n\n<ul>\n<li>Add support for meta data in value field<\/li>\n<li>Add support for excluded terms<\/li>\n<li>Fix by getting the image URL from Post or Attachment<\/li>\n<li>Renamed Parameter \"category-relation\" to \"tax-relation\"<\/li>\n<\/ul>\n\n<h4>2.1<\/h4>\n\n<ul>\n<li>Add support for attachments<\/li>\n<li>Add new post status \"inherit\"<\/li>\n<li>Add new value field \"thumbnail\"<\/li>\n<\/ul>\n\n<h4>2.0<\/h4>\n\n<ul>\n<li>Add WPML compatibility for getting posts<\/li>\n<li>Add the post number option to the fields<\/li>\n<li>Changed the \"field_name_get_posts\" filter to \"wpcf7_field_name_get_posts\"<\/li>\n<li>Code optimization for getting posts<\/li>\n<\/ul>\n\n<h4>1.9<\/h4>\n\n<ul>\n<li>Select2 Libary Update to 4.0.5<\/li>\n<li>Code and performance optimizations<\/li>\n<li>Translation fixes<\/li>\n<\/ul>\n\n<h4>1.8<\/h4>\n\n<ul>\n<li>Add new default value option \"current_post\"<\/li>\n<\/ul>\n\n<h4>1.7.1<\/h4>\n\n<ul>\n<li>Bugfix in posts image fields css file (clearfix)<\/li>\n<\/ul>\n\n<h4>1.7<\/h4>\n\n<ul>\n<li>CSS optimizations in all posts image fields<\/li>\n<\/ul>\n\n<h4>1.6<\/h4>\n\n<ul>\n<li>Code and performance optimizations<\/li>\n<li>Changed the name of the image size to \"wpcf7-post-image\"<\/li>\n<li>Changed the order of the form tags<\/li>\n<li>Introduction of a new \"posts image checkboxes\" and \"posts image radio buttons\" field<\/li>\n<li>New \"Meta Data\" feature for all image post fields<\/li>\n<li>New value field \"Permalink\", wich prints pretty post hyperlinks on the mail body<\/li>\n<li>Add new translations<\/li>\n<\/ul>\n\n<h4>1.5<\/h4>\n\n<ul>\n<li>Bugfix in \"posts image drop-down-menu\" when select multiple and include_blank<\/li>\n<li>Bugfix in \"posts image drop-down-menu\" (dashicons) when no thumbnail is available<\/li>\n<li>Add \"permalink\" and \"author\" tags to the label format<\/li>\n<\/ul>\n\n<h4>1.4<\/h4>\n\n<ul>\n<li>Introduction of a new \"posts image drop-down-menu\" field<\/li>\n<li>Changed the deprecated class WPCF7_Shortcode to WPCF7_FormTag<\/li>\n<li>Bugfix when the \"posts drop-down-menu\" has the option \"include_blank\"<\/li>\n<\/ul>\n\n<h4>1.3<\/h4>\n\n<ul>\n<li>Post meta keys available in the label formatting<\/li>\n<\/ul>\n\n<h4>1.2<\/h4>\n\n<ul>\n<li>Changed the deprecated function wpcf7_add_shortcode to wpcf7_add_form_tag<\/li>\n<li>Translation fixes<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Translation fixes<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial Release<\/li>\n<li>Check compatibility with latest Contact Form 7 and WordPress Version<\/li>\n<\/ul>","raw_excerpt":"This plugin provides a dynamic post selection, radio and checkbox field to your CF7 forms.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/uk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/52107","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/uk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/uk.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/uk.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=52107"}],"author":[{"embeddable":true,"href":"https:\/\/uk.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/markusfroehlich"}],"wp:attachment":[{"href":"https:\/\/uk.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=52107"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/uk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=52107"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/uk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=52107"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/uk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=52107"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/uk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=52107"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/uk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=52107"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}