Not work with contact form 7
-
Hi,
The only problem I have now is not able make it works with Contact form 7. Any idea how to make it works? Take note that, I have plenty of contact forms in my the posts.
-
Hi,
Are using one of the addons?
Can you post your repeater template?What is happening? Is the shortcode not rendering?
What addons you refer to?
The shortcodes is randering, but it not will with the js. When click on submit button, instead of submit, it redirected to a page with the url like this :
http://example.com/wp-admin/admin-ajax.php?action=alm_query_posts&query_type=standard&nonce=5a8356ed1b&repeater=default&theme_repeater=null&cta&comments&post_type%5B0%5D=post&post_format&category&category__not_in&tag&tag__not_in&taxonomy&taxonomy_terms&taxonomy_operator&taxonomy_relation&meta_key&meta_value&meta_compare&meta_relation&meta_type&author&year&month&day&post_status&order=DESC&orderby=date&post__in&post__not_in&exclude&search&custom_args&posts_per_page=1&page=1&offset=0&preloaded=false&seo_start_page=1&paging=false&previous_post=true&previous_post_id=52905&previous_post_taxonomy&lang&slug=asdasd&canonical_url=http%3A%2F%2Flocalhost%2Fsoscili%2F%3Fp%3D52907#wpcf7-f48671-o1And the content of the page is like this json encoded object.
{"html":"\n\t<div class=\"mh-cover cover_title\">\n\t\t\t<div class=\"cover-img\"><span class='mh-item-category'><a href=\"http:\/\/localhost\/soscili\/?cat=1\" data-tip=\"View all posts in Uncategorized\">Uncategorized<\/a><\/span><div class='mh-cover-title'><h1 class='mh-title' itemprop='name'><span>form 2<\/span><\/h1><\/div><div class='mh-item-meta'><span class='mh-info-author'><a href='http:\/\/localhost\/soscili\/?author=29' itemprop='author'>tc k<\/a><meta itemprop='author' content='tc k'><\/span><span class='mh-info-date' itemprop='dateCreated'>March 1, 2017<\/span> <a href='http:\/\/localhost\/soscili\/wp-admin\/post.php?post=52905&action=edit' style='color:red' >Edit this post<\/a><\/div><\/div>\n\t<\/div>\n\t<div class=\"mh-content-wrap\">\n\t\t<div class=\"mh-content-post\">\n\t\t\t<div class=\"essb_links essb_counters essb_displayed_shortcode essb_share essb_template_fancy-bold-retina essb_1936468215 print-no\" id=\"essb_displayed_shortcode_1936468215\" data-essb-postid=\"52905\" data-essb-position=\"shortcode\" data-essb-button-style=\"icon_hover\" data-essb-template=\"fancy-bold-retina\" data-essb-counter-pos=\"insidename\" data-essb-url=\"http:\/\/localhost\/soscili\/?p=52905\" data-essb-twitter-url=\"http:\/\/localhost\/soscili\/?p=52905\" data-essb-instance=\"1936468215\"><ul class=\"essb_links_list essb_hide_name\"><li class=\"essb_item essb_totalcount_item\" data-counter-pos=\"insidename\"><span class=\"essb_totalcount essb_t_l_big \" title=\"\" data-shares-text=\"share\"><span class=\"essb_t_nb\">0<span class=\"essb_t_nb_after\">share<\/span><\/span><\/span><\/li><li class=\"essb_item essb_link_facebook nolightbox\"> <a href=\"https:\/\/www.facebook.com\/sharer\/sharer.php?u=http:\/\/localhost\/soscili\/?p=52905&t=form 2&redirect_uri=http:\/\/localhost\/soscili?sharing-thankyou=yes\" title=\"\" onclick=\"essb_window('https:\/\/www.facebook.com\/sharer\/sharer.php?u=http:\/\/localhost\/soscili\/?p=52905&t=form 2&redirect_uri=http:\/\/localhost\/soscili?sharing-thankyou=yes','facebook','1936468215'); return false;\" target=\"_blank\" rel=\"nofollow\" ><span class=\"essb_icon essb_icon_facebook\"><\/span><span class=\"essb_network_name\">Facebook<span class=\"essb_counter_insidename\" data-cnt=\"\">0<\/span><\/span><\/a><\/li><li class=\"essb_item essb_link_twitter nolightbox\"> <a href=\"#\" title=\"\" onclick=\"essb_window('https:\/\/twitter.com\/intent\/tweet?text=form 2&url=http:\/\/localhost\/soscili\/?p=52905&counturl=http:\/\/localhost\/soscili\/?p=52905&related=soscilimy&via=soscilimy','twitter','1936468215'); return false;\" target=\"_blank\" rel=\"nofollow\" ><span class=\"essb_icon essb_icon_twitter\"><\/span><span class=\"essb_network_name\">Twitter<span class=\"essb_counter_insidename\" data-cnt=\"\">0<\/span><\/span><\/a><\/li><li class=\"essb_item essb_link_mail nolightbox\"> <a href=\"#\" title=\"\" onclick=\"essb_open_mailform('1936468215'); return false;\" target=\"_blank\" rel=\"nofollow\" ><span class=\"essb_icon essb_icon_mail\"><\/span><span class=\"essb_network_name\">Email<span class=\"essb_counter_insidename\" data-cnt=\"\">0<\/span><\/span><\/a><\/li><li class=\"essb_item essb_link_whatsapp nolightbox\"> <a href=\"whatsapp:\/\/send?text=form%202%20http%3A%2F%2Flocalhost%2Fsoscili%2F%3Fp%3D52905\" title=\"\" onclick=\"essb_tracking_only('', 'whatsapp', '1936468215', true);\" target=\"_self\" rel=\"nofollow\" ><span class=\"essb_icon essb_icon_whatsapp\"><\/span><span class=\"essb_network_name\">WhatsApp<\/span><\/a><\/li><li class=\"essb_item essb_link_line nolightbox\"> <a href=\"line:\/\/msg\/text\/form%202%20http%3A%2F%2Flocalhost%2Fsoscili%2F%3Fp%3D52905\" title=\"\" onclick=\"essb_tracking_only('', 'line', '1936468215', true);\" target=\"_self\" rel=\"nofollow\" ><span class=\"essb_icon essb_icon_line\"><\/span><span class=\"essb_network_name\">Line<\/span><\/a><\/li><li class=\"essb_item essb_link_telegram nolightbox\"> <a href=\"tg:\/\/msg?text=form%202%20http%3A%2F%2Flocalhost%2Fsoscili%2F%3Fp%3D52905\" title=\"\" onclick=\"essb_tracking_only('', 'telegram', '1936468215', true);\" target=\"_blank\" rel=\"nofollow\" ><span class=\"essb_icon essb_icon_telegram\"><\/span><span class=\"essb_network_name\">Telegram<\/span><\/a><\/li><li class=\"essb_item essb_link_messenger nolightbox\"> <a href=\"https:\/\/www.facebook.com\/dialog\/send?app_id=&link=http:\/\/localhost\/soscili\/?p=52905&redirect_uri=https:\/\/facebook.com\" title=\"\" onclick=\"essb_window('https:\/\/www.facebook.com\/dialog\/send?app_id=&link=http:\/\/localhost\/soscili\/?p=52905&redirect_uri=https:\/\/facebook.com','messenger','1936468215'); return false;\" target=\"_blank\" rel=\"nofollow\" ><span class=\"essb_icon essb_icon_messenger\"><\/span><span class=\"essb_network_name\">Facebook Messenger<\/span><\/a><\/li><\/ul><\/div> \n\t\t<p>form 2<\/p>\n<div role=\"form\" class=\"wpcf7\" id=\"wpcf7-f48671-o1\" lang=\"en-US\" dir=\"ltr\">\n<div class=\"screen-reader-response\"><\/div>\n<form action=\"\/soscili\/wp-admin\/admin-ajax.php?action=alm_query_posts&query_type=standard&nonce=5a8356ed1b&repeater=default&theme_repeater=null&cta&comments&post_type%5B0%5D=post&post_format&category&category__not_in&tag&tag__not_in&taxonomy&taxonomy_terms&taxonomy_operator&taxonomy_relation&meta_key&meta_value&meta_compare&meta_relation&meta_type&author&year&month&day&post_status&order=DESC&orderby=date&post__in&post__not_in&exclude&search&custom_args&posts_per_page=1&page=1&offset=0&preloaded=false&seo_start_page=1&paging=false&previous_post=true&previous_post_id=52905&previous_post_taxonomy&lang&slug=asdasd&canonical_url=http%3A%2F%2Flocalhost%2Fsoscili%2F%3Fp%3D52907#wpcf7-f48671-o1\" method=\"post\" class=\"wpcf7-form\" enctype=\"multipart\/form-data\" novalidate=\"novalidate\">\n<div style=\"display: none;\">\n<input type=\"hidden\" name=\"_wpcf7\" value=\"48671\" \/>\n<input type=\"hidden\" name=\"_wpcf7_version\" value=\"4.6.1\" \/>\n<input type=\"hidden\" name=\"_wpcf7_locale\" value=\"en_US\" \/>\n<input type=\"hidden\" name=\"_wpcf7_unit_tag\" value=\"wpcf7-f48671-o1\" \/>\n<input type=\"hidden\" name=\"_wpnonce\" value=\"95d438e765\" \/>\n<\/div>\n<p><label> Nama<br \/>\n <span class=\"wpcf7-form-control-wrap your-name\"><input type=\"text\" name=\"your-name\" value=\"\" size=\"40\" class=\"wpcf7-form-control wpcf7-text wpcf7-validates-as-required\" aria-required=\"true\" aria-invalid=\"false\" \/><\/span> <\/label><\/p>\n<p><label> Emel<br \/>\n <span class=\"wpcf7-form-control-wrap your-email\"><input type=\"email\" name=\"your-email\" value=\"\" size=\"40\" class=\"wpcf7-form-control wpcf7-text wpcf7-email wpcf7-validates-as-required wpcf7-validates-as-email\" aria-required=\"true\" aria-invalid=\"false\" \/><\/span> <\/label><\/p>\n<p><label> Cerita sedikit sebanyak tentang diri korang.<br \/>\n <span class=\"wpcf7-form-control-wrap biodata\"><textarea name=\"biodata\" cols=\"40\" rows=\"10\" class=\"wpcf7-form-control wpcf7-textarea wpcf7-validates-as-required\" aria-required=\"true\" aria-invalid=\"false\">Cer cerita sikit kat sini.<\/textarea><\/span> <\/label><\/p>\n<p><label> Kalau korang terserempak dengan Tun M dalam lif, apa yang akan korang tanya?<br \/>\n <span class=\"wpcf7-form-control-wrap your-message\"><textarea name=\"your-message\" cols=\"40\" rows=\"10\" class=\"wpcf7-form-control wpcf7-textarea wpcf7-validates-as-required\" aria-required=\"true\" aria-invalid=\"false\">Tulis jawapan di sini.<\/textarea><\/span> <\/label><\/p>\n<p><label> Resume (fail PDF dan Microsoft Word sahaja)<br \/>\n<span class=\"wpcf7-form-control-wrap resume\"><input type=\"file\" name=\"resume\" size=\"40\" class=\"wpcf7-form-control wpcf7-file wpcf7-validates-as-required\" aria-required=\"true\" aria-invalid=\"false\" \/><\/span> <\/label><\/p>\n<p><label> Contoh tulisan yang paling SOSCILI sekali (fail PDF dan Microsoft Word sahaja)<br \/>\n<span class=\"wpcf7-form-control-wrap writing\"><input type=\"file\" name=\"writing\" size=\"40\" class=\"wpcf7-form-control wpcf7-file wpcf7-validates-as-required\" aria-required=\"true\" aria-invalid=\"false\" \/><\/span> <\/label><\/p>\n<p><input type=\"submit\" value=\"Hantar\" class=\"wpcf7-form-control wpcf7-submit\" \/><\/p>\n<div class=\"wpcf7-response-output wpcf7-display-none\"><\/div><\/form><\/div>\n\n\t\t\t\t<div class=\"essb_links essb_counters essb_displayed_shortcode essb_share essb_template_fancy-bold-retina essb_454408930 print-no\" id=\"essb_displayed_shortcode_454408930\" data-essb-postid=\"52905\" data-essb-position=\"shortcode\" data-essb-button-style=\"icon_hover\" data-essb-template=\"fancy-bold-retina\" data-essb-counter-pos=\"insidename\" data-essb-url=\"http:\/\/localhost\/soscili\/?p=52905\" data-essb-twitter-url=\"http:\/\/localhost\/soscili\/?p=52905\" data-essb-instance=\"454408930\"><ul class=\"essb_links_list essb_hide_name\"><li class=\"essb_item essb_totalcount_item\" data-counter-pos=\"insidename\"><span class=\"essb_totalcount essb_t_l_big \" title=\"\" data-shares-text=\"share\"><span class=\"essb_t_nb\">0<span class=\"essb_t_nb_after\">share<\/span><\/span><\/span><\/li><li class=\"essb_item essb_link_facebook nolightbox\"> <a href=\"https:\/\/www.facebook.com\/sharer\/sharer.php?u=http:\/\/localhost\/soscili\/?p=52905&t=form 2&redirect_uri=http:\/\/localhost\/soscili?sharing-thankyou=yes\" title=\"\" onclick=\"essb_window('https:\/\/www.facebook.com\/sharer\/sharer.php?u=http:\/\/localhost\/soscili\/?p=52905&t=form 2&redirect_uri=http:\/\/localhost\/soscili?sharing-thankyou=yes','facebook','454408930'); return false;\" target=\"_blank\" rel=\"nofollow\" ><span class=\"essb_icon essb_icon_facebook\"><\/span><span class=\"essb_network_name\">Facebook<span class=\"essb_counter_insidename\" data-cnt=\"\">0<\/span><\/span><\/a><\/li><li class=\"essb_item essb_link_twitter nolightbox\"> <a href=\"#\" title=\"\" onclick=\"essb_window('https:\/\/twitter.com\/intent\/tweet?text=form 2&url=http:\/\/localhost\/soscili\/?p=52905&counturl=http:\/\/localhost\/soscili\/?p=52905&related=soscilimy&via=soscilimy','twitter','454408930'); return false;\" target=\"_blank\" rel=\"nofollow\" ><span class=\"essb_icon essb_icon_twitter\"><\/span><span class=\"essb_network_name\">Twitter<span class=\"essb_counter_insidename\" data-cnt=\"\">0<\/span><\/span><\/a><\/li><li class=\"essb_item essb_link_mail nolightbox\"> <a href=\"#\" title=\"\" onclick=\"essb_open_mailform('454408930'); return false;\" target=\"_blank\" rel=\"nofollow\" ><span class=\"essb_icon essb_icon_mail\"><\/span><span class=\"essb_network_name\">Email<span class=\"essb_counter_insidename\" data-cnt=\"\">0<\/span><\/span><\/a><\/li><li class=\"essb_item essb_link_whatsapp nolightbox\"> <a href=\"whatsapp:\/\/send?text=form%202%20http%3A%2F%2Flocalhost%2Fsoscili%2F%3Fp%3D52905\" title=\"\" onclick=\"essb_tracking_only('', 'whatsapp', '454408930', true);\" target=\"_self\" rel=\"nofollow\" ><span class=\"essb_icon essb_icon_whatsapp\"><\/span><span class=\"essb_network_name\">WhatsApp<\/span><\/a><\/li><li class=\"essb_item essb_link_line nolightbox\"> <a href=\"line:\/\/msg\/text\/form%202%20http%3A%2F%2Flocalhost%2Fsoscili%2F%3Fp%3D52905\" title=\"\" onclick=\"essb_tracking_only('', 'line', '454408930', true);\" target=\"_self\" rel=\"nofollow\" ><span class=\"essb_icon essb_icon_line\"><\/span><span class=\"essb_network_name\">Line<\/span><\/a><\/li><li class=\"essb_item essb_link_telegram nolightbox\"> <a href=\"tg:\/\/msg?text=form%202%20http%3A%2F%2Flocalhost%2Fsoscili%2F%3Fp%3D52905\" title=\"\" onclick=\"essb_tracking_only('', 'telegram', '454408930', true);\" target=\"_blank\" rel=\"nofollow\" ><span class=\"essb_icon essb_icon_telegram\"><\/span><span class=\"essb_network_name\">Telegram<\/span><\/a><\/li><li class=\"essb_item essb_link_messenger nolightbox\"> <a href=\"https:\/\/www.facebook.com\/dialog\/send?app_id=&link=http:\/\/localhost\/soscili\/?p=52905&redirect_uri=https:\/\/facebook.com\" title=\"\" onclick=\"essb_window('https:\/\/www.facebook.com\/dialog\/send?app_id=&link=http:\/\/localhost\/soscili\/?p=52905&redirect_uri=https:\/\/facebook.com','messenger','454408930'); return false;\" target=\"_blank\" rel=\"nofollow\" ><span class=\"essb_icon essb_icon_messenger\"><\/span><span class=\"essb_network_name\">Facebook Messenger<\/span><\/a><\/li><\/ul><\/div> \n\t\t<\/div>\n\t\t\n\t\t<div class=\"mh-tag-source\">\n\t\t\t\t\n\t\t<\/div>\n\t\t\n\t\t\t\t\t\t<div class=\"fb-comments\" data-href=\"http:\/\/localhost\/soscili\/?p=52905\" data-width=\"100%\" data-numposts=\"5\" data-order-by=\"social\" data-colorscheme=\"light\" style=\"display:block;\"><\/div>\n\t\t\t\t\n\t\t\t\t\n\t\t\n\t<\/div>\n<br>\n","meta":{"postcount":1,"totalposts":1,"debug":false}}Just tested this and yes you’re right.
Quick google search turns up a few leads:
- http://stackoverflow.com/questions/28866152/enabling-ajax-on-contact-form-7-form-after-ajax-load
- http://stackoverflow.com/questions/29030607/ajax-submission-wont-work-if-contact-form-resides-in-an-ajax-loaded-content
Looks like it’s going to take some custom dev work to get this functioning as expect.
ALM has an almComplete callback you can hook into.
Not sure what your skill level is, but do you think you can try either of these?
The topic ‘Not work with contact form 7’ is closed to new replies.