Little Boy Running
Forum Replies Created
-
After investigation the problem lies in a change in the way CF7 targets fields targeting starting with version 5.6.
Before: the field name is added as a class
After: the field name is added a data attributePlugins that add form tags to CF7 must change the way they build the HTML markup in order for the validation to work. With International Telephone Input for CF7 this means modifying line 90 in includes/form-tag.php
Before:
'<span class="wpcf7-form-control-wrap %1$s"><input %2$s /><input %3$s /><input %5$s /><input %6$s /><input %7$s />%4$s</span>',
After:
'<span class="wpcf7-form-control-wrap" data-name="%1$s"><input %2$s /><input %3$s /><input %5$s /><input %6$s /><input %7$s />%4$s</span>',
Obviously changing the code in the plugin yourself is not a very good idea. Ideally the author should validate this kind of changes, make sure it doesn’t break anything else then publish a new release.
Hi Konrad,
It works perfectly!
I’ll use your workaround and monitor your next patch to remove it.Many thanks for your clear and useful reply.
Have a nice day!
Best regardsForum: Plugins
In reply to: [Contact Form 7] Cached website / RefillCould we have an answer from the plugin owner on this matter?
Would you be open to a pull request with a new wp-config variable that allows to deactivate the recaptcha refill?
ThanksHi @dcooney,
That worked perfectly!
I thought I tried this but I think I had a scope issue with the the container var not being defined in the right place.
Many thanks!Forum: Plugins
In reply to: [Beautiful taxonomy filters] Compatibility issue with PolylangThere is a second field in the wp_option that seems to contain information about the slug translation made by Polylang:
The field is “_transient_pll_translated_slugs” and the relevant informatin to the “sale” cpt is:
s:4:"sale";a:2:{s:4:"slug";s:7:"acheter";s:12:"translations";a:2:{s:2:"fr";s:7:"acheter";s:2:"en";s:3:"buy";}}s:12:"archive_sale";a:3:{s:4:"hide";b:1;s:4:"slug";s:7:"acheter";s:12:"translations";a:2:{s:2:"fr";s:7:"acheter";s:2:"en";s:3:"buy";}}
Forum: Plugins
In reply to: [Beautiful taxonomy filters] Compatibility issue with PolylangNo, the slug is different according to the language.
ex:
– https://www.domain.com/acheter/item-12
– https://www.domain.com/en/buy/item-12The rewrite rule takes the current language into account.
In my example, french being the default language.Here are the rules I have extracted from the wp_option table that concerns may “sale” cpt:
s:46:"(en)/(acheter|buy)/[^/]+/attachment/([^/]+)/?$" s:49:"index.php?lang=$matches[1]&attachment=$matches[3]" s:41:"(acheter|buy)/[^/]+/attachment/([^/]+)/?$" s:32:"index.php?attachment=$matches[2]" s:56:"(en)/(acheter|buy)/[^/]+/attachment/([^/]+)/trackback/?$" s:54:"index.php?lang=$matches[1]&attachment=$matches[3]&tb=1" s:51:"(acheter|buy)/[^/]+/attachment/([^/]+)/trackback/?$" s:37:"index.php?attachment=$matches[2]&tb=1" s:76:"(en)/(acheter|buy)/[^/]+/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$" s:66:"index.php?lang=$matches[1]&attachment=$matches[3]&feed=$matches[4]" s:71:"(acheter|buy)/[^/]+/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$" s:49:"index.php?attachment=$matches[2]&feed=$matches[3]" s:71:"(en)/(acheter|buy)/[^/]+/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$" s:66:"index.php?lang=$matches[1]&attachment=$matches[3]&feed=$matches[4]" s:66:"(acheter|buy)/[^/]+/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$" s:49:"index.php?attachment=$matches[2]&feed=$matches[3]" s:71:"(en)/(acheter|buy)/[^/]+/attachment/([^/]+)/comment-page-([0-9]{1,})/?$" s:67:"index.php?lang=$matches[1]&attachment=$matches[3]&cpage=$matches[4]" s:66:"(acheter|buy)/[^/]+/attachment/([^/]+)/comment-page-([0-9]{1,})/?$" s:50:"index.php?attachment=$matches[2]&cpage=$matches[3]" s:52:"(en)/(acheter|buy)/[^/]+/attachment/([^/]+)/embed/?$" s:60:"index.php?lang=$matches[1]&attachment=$matches[3]&embed=true" s:47:"(acheter|buy)/[^/]+/attachment/([^/]+)/embed/?$" s:43:"index.php?attachment=$matches[2]&embed=true" s:35:"(en)/(acheter|buy)/([^/]+)/embed/?$" s:54:"index.php?lang=$matches[1]&sale=$matches[3]&embed=true" s:30:"(acheter|buy)/([^/]+)/embed/?$" s:37:"index.php?sale=$matches[2]&embed=true" s:39:"(en)/(acheter|buy)/([^/]+)/trackback/?$" s:48:"index.php?lang=$matches[1]&sale=$matches[3]&tb=1" s:34:"(acheter|buy)/([^/]+)/trackback/?$" s:31:"index.php?sale=$matches[2]&tb=1" s:59:"(en)/(acheter|buy)/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$" s:60:"index.php?lang=$matches[1]&sale=$matches[3]&feed=$matches[4]" s:54:"(acheter|buy)/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$" s:43:"index.php?sale=$matches[2]&feed=$matches[3]" s:54:"(en)/(acheter|buy)/([^/]+)/(feed|rdf|rss|rss2|atom)/?$" s:60:"index.php?lang=$matches[1]&sale=$matches[3]&feed=$matches[4]" s:49:"(acheter|buy)/([^/]+)/(feed|rdf|rss|rss2|atom)/?$" s:43:"index.php?sale=$matches[2]&feed=$matches[3]" s:47:"(en)/(acheter|buy)/([^/]+)/page/?([0-9]{1,})/?$" s:61:"index.php?lang=$matches[1]&sale=$matches[3]&paged=$matches[4]" s:42:"(acheter|buy)/([^/]+)/page/?([0-9]{1,})/?$" s:44:"index.php?sale=$matches[2]&paged=$matches[3]" s:54:"(en)/(acheter|buy)/([^/]+)/comment-page-([0-9]{1,})/?$" s:61:"index.php?lang=$matches[1]&sale=$matches[3]&cpage=$matches[4]" s:49:"(acheter|buy)/([^/]+)/comment-page-([0-9]{1,})/?$" s:44:"index.php?sale=$matches[2]&cpage=$matches[3]" s:43:"(en)/(acheter|buy)/([^/]+)(?:/([0-9]+))?/?$" s:60:"index.php?lang=$matches[1]&sale=$matches[3]&page=$matches[4]" s:38:"(acheter|buy)/([^/]+)(?:/([0-9]+))?/?$" s:43:"index.php?sale=$matches[2]&page=$matches[3]" s:35:"(en)/(acheter|buy)/[^/]+/([^/]+)/?$" s:49:"index.php?lang=$matches[1]&attachment=$matches[3]" s:30:"(acheter|buy)/[^/]+/([^/]+)/?$" s:32:"index.php?attachment=$matches[2]" s:45:"(en)/(acheter|buy)/[^/]+/([^/]+)/trackback/?$" s:54:"index.php?lang=$matches[1]&attachment=$matches[3]&tb=1" s:40:"(acheter|buy)/[^/]+/([^/]+)/trackback/?$" s:37:"index.php?attachment=$matches[2]&tb=1" s:65:"(en)/(acheter|buy)/[^/]+/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$" s:66:"index.php?lang=$matches[1]&attachment=$matches[3]&feed=$matches[4]" s:60:"(acheter|buy)/[^/]+/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$" s:49:"index.php?attachment=$matches[2]&feed=$matches[3]" s:60:"(en)/(acheter|buy)/[^/]+/([^/]+)/(feed|rdf|rss|rss2|atom)/?$" s:66:"index.php?lang=$matches[1]&attachment=$matches[3]&feed=$matches[4]" s:55:"(acheter|buy)/[^/]+/([^/]+)/(feed|rdf|rss|rss2|atom)/?$" s:49:"index.php?attachment=$matches[2]&feed=$matches[3]" s:60:"(en)/(acheter|buy)/[^/]+/([^/]+)/comment-page-([0-9]{1,})/?$" s:67:"index.php?lang=$matches[1]&attachment=$matches[3]&cpage=$matches[4]" s:55:"(acheter|buy)/[^/]+/([^/]+)/comment-page-([0-9]{1,})/?$" s:50:"index.php?attachment=$matches[2]&cpage=$matches[3]" s:41:"(en)/(acheter|buy)/[^/]+/([^/]+)/embed/?$" s:60:"index.php?lang=$matches[1]&attachment=$matches[3]&embed=true" s:36:"(acheter|buy)/[^/]+/([^/]+)/embed/?$" s:43:"index.php?attachment=$matches[2]&embed=true"
Forum: Plugins
In reply to: [Beautiful taxonomy filters] Compatibility issue with PolylangWhile Frédéric can be given the time to give an answer, I’ve looked rapidly and it looks like Polylang simply edit WordPress rewrite rules.
At least, I’ve been able to determine that a change of slug in Polylang settings is reflected in the wp_options table on the field “rewrite_rules” which lists all the rewrite rules.
Does this helps?Forum: Plugins
In reply to: [Beautiful taxonomy filters] Compatibility issue with PolylangHi Jonathan !
Thanks for your enlighting answer.
Yes this is the method I used.
I’ll ask Frédéric Demarle, author of Polylang if he can give specifics about how the slug translation is implemented.Ideally BTF would pickup on translations for post type slugs and taxonomy slugs and terms. Ideally of course ??
I’ll get back to the thread with the information I’m able to gather.
Thanks
Forum: Plugins
In reply to: [Beautiful taxonomy filters] Terms OrderBy Count ?Hey Fredrik!
Now I feel dumb… Thanks a bunch.
Does anyone have an idea on how to solve the first part of my question?
Forum: Plugins
In reply to: [Advanced Custom Fields: Field Snitch] Version 5?Thanks for the fix! Works a treat.
Forum: Fixing WordPress
In reply to: v3.4 problem on iPad 3rd gen – custom admin icons for CPTThanks for this. Will try soon.
+1 yep, what they said…
I think developers would be more than OK to accept that some features or obviously not available when the website is not public. Needing to dev on a live server is really time consuming…
Thanks!Hey Stevie!
I’d be greatly interested in your work on the plugin and custom capabilities. Do you have an approximate date on when you offer your code to Bill?
Can I help in any way?Thanks!
Martin VauchelBrilliant! Thank you jwoodcreative, that’s exacly what I was looking for!
I “might” have found the fix but I need to test it before telling the forum about it…