I’m using two CF7 forms on my site and inserted a “acceptance checkbox” validation with a link because of consistency. This works so far.
To do this I’ve created a shortcode tag “cb” with the desired content:
function dab_cb_form_tag_handler( $tag ) {
$link_dataprotection = get_privacy_policy_url();
$html_result = Html::div()
->content(
'<div></div>' .
'<div>' .
'[acceptance cb-datenschutz]Ja, ich habe die <a href="' . $link_dataprotection . '">Datenschutzerkl?rung</a> zur Kenntnis genommen.<span class="required">*</span>[/acceptance]' .
Html::p()->content('Ich stimme zu, dass meine Angaben und Daten zur Beantwortung meiner Anfrage elektronisch erhoben und gespeichert werden.</p>') .
'</div>'
)
->get();
$formTagsManager = WPCF7_FormTagsManager::get_instance();
return $formTagsManager->replace_all( $html_result );
}
function custom_add_form_tag_clock() {
wpcf7_add_form_tag(
'cb',
'dab_cb_form_tag_handler'
);
}
add_action( 'wpcf7_init', 'custom_add_form_tag_clock' );
Problem is now, that CF7 doesn’t recognice the required field – here set with the “acceptance” attribute.
Of course I have activated “acceptance_as_validation: on” in the form settings.
Would be great someone could help to make this run.
Juergen
]]>thanks for this great plugin!
But since the update to 2.5.0
As soon as the widget or shorttag for a podcast_episode is used the page layout get broken because of included ccs code in the block.
(in my case the in a footer widget)
I hope this helps to solve the issue
I’m running WordPress v.4.6.1. I am getting an error when I use your plugin. I have page where I am using the [loginform] shortcode. When I view the page and I am not logged in, I see this error:
Warning: Illegal string offset ‘redirect’ in /nas/content/staging/lasers/wp-content/plugins/login-form-anywhere/loginfrom.php on line 30
You can see it at this page: https://lasers.staging.wpengine.com/about/board-of-trustees/board-portal/audits/
Can you help me to resolve? I you need more information please feel free to contact me.
Thanks,
Brian
]]>I’m using WordPress 4.3.1 avec le thème Twenty Fourteen.
I’m creating a new website and might have performed a wrong action while updating following fields :
Adresse web de WordPress (URL)
Adresse web du site (URL)
The site required a new password for me which worked out fine BUT my shortags are now inactive :
[huge_it_maps id=”2″]
[CONTACT_FORM_TO_EMAIL id=”2″]
I do not know where to restaure original functionnality as they dropped while I updated respective pages where they are used
]]>I’m trying my hands at creating a plugin. This should work so that users put a shorttag on the page they want it on, and the shorttag is replaced with custom content. So far I’ve been able to do this and replace the shorttag with a PHP file.
However, I have seen other plugins do this, but I don’t know how:
I would like all subsequent page requests to go to the same page, where the included PHP file handles which content is being displayed.
Say I add a page with the URL /mypage
On this page I add the shorttag [mytag].
This tag is replaced with a list of links.
One link points to /mypage/one and another to /mypage/two
I don’t want to create subpages called “one” and “two”, but I want the included PHP file to do its custom stuff. Some stuff for “one” and other stuff for “two”.
How can I create such rewrite rules so that they work no matter what page (or subpage) you put the shorttag on?
How should the included PHP file handle the subpages (or sub-subpages)?
This is a short info message for people who just updated to v1.1
Go to pages –> your ticket page
Remove the text you see and enter the new shortcode:
[addosticket]
For new setups this will be done automatically, however we could not fix updated versions.
Regards,
Marco
https://www.ads-software.com/plugins/key4ce-osticket-bridge/
]]>Amicalement.
https://www.ads-software.com/extend/plugins/shorten-url/
]]>this same tag if used in text widget shipped with wordpress works fine.
i copied the same class of WP_Widget_Text and renamed it and created my own, again the shorttag doesnt work.
what wrong am i doing??
Thanks in advance..
]]>I’ve been using zinmag remedy theme for a few years, tweaking here and there. Works well for us but suddenly in Chrome, our “5 Freshest Reviews” sidebar isn’t showing the images. This works for all other browsers, but not in chrome.
The code that defines this space in our template:
<a>" <?php $homethumb = get_post_meta($post->ID,'homethumb', true); ?>
<img src="<?php bloginfo('url'); ?>/wp-content/uploads/<?php echo strtolower($homethumb); ?>.jpg" width="100" height="60" alt=""/></a>
I was reading around and perhaps that Chrome doesn’t like me defining the size of the image here. Does that mean I need to define it in the CSS? And if so, how?
The site: www.candygurus.com
Thanks for any help someone can provide….
]]>I use various custom short tags and when viewing the RSS feed at /feed/rss/ the shorttags still show and have not been parsed.
This is not the case if I view the atom feed at /feed/atom/
Is there a reason for this difference?
Thanks
]]>