triska.jakub
Forum Replies Created
-
Forum: Plugins
In reply to: [Advanced Custom Fields (ACF®)] ACF are not displayed in CF7 post typeTo the functions.php, you just need to adapt it according what you need to add. It’s simply add_meta_box function, but you need to use cf’s actions for saving and loading. There is available “post”, so I stored it in post_meta, but it should be probably saved somehow in the options of the form itself. I didn’t have that much time for searching how to do that, so it’s not perfect, but it works. This is what I did http://pastebin.com/g242xa4s
Form needs to be saved for the first time, otherwise it won’t store the field correctly, as I said, it’s not perfect.
Then you can use this field on page where you have form, ID of form is equal to ID of post, so you can find it easily and do some javascript to make it popup after sending.Forum: Plugins
In reply to: [Advanced Custom Fields (ACF®)] ACF are not displayed in CF7 post typeHi, on CF7 support the told me, that I don’t need to add ACF on CF7..
It might be caused by cf7 specific position, instead of “normal” etc. it needs to be after their fields, like “email”, “email2”, etc. And it has problem with specified post type, null is required in add_meta_box function. And for saving and loading it uses own actions.
Anyway I managed to add it manually with combination of this https://gist.github.com/inspectorfegter/1207830 (WYSIWYG editor) and this https://wordpress.org/support/topic/trying-to-add-a-meta-box-using-wpcf7_add_meta_boxes?replies=2
Would be nice though if it could detect fields of cf7 and add it there easily like for other post types.