Xavvi
Forum Replies Created
-
Hi,
Thanks for your reply.
Yes it’s for the booking form. I’ve added this to my functions file but I’m not sure it’s right. It prevents the booking confirmation message but the user and booking are still registered in the backend
add_filter( 'em_booking_save' , 'honeypot_booking_form_check'); function honeypot_booking_form_check() { if($_POST['honeypot'] != ''){ die("You appear to be a bot!"); } }
Is it maybe happening too late?
What I’m really after is fine grain control over the templates like with the calendar-full.php template, I’m just not sure how to do that with the others. So was hoping for an example I could study and follow
Thanks Angelo, but I’m trying to change the truncated month names for the group-list view. I don’t think that can be changed from here…
Forum: Plugins
In reply to: [Custom Post Type UI] Custom rewrite slug issueThe rewrite slug is being set in the CPTUI settings for the taxonomy.
I’ve managed to get it working but only by setting up the custom post type manually in my functions file and using the following string replace function:
add_filter('post_link', 'information_permalink', 10, 3);
add_filter('post_type_link', 'information_permalink', 10, 3);function information_permalink($permalink, $post_id, $leavename) {
if (strpos($permalink, '%info_category%') === FALSE) return $permalink;// Get post
$post = get_post($post_id);
if (!$post) return $permalink;// Get taxonomy terms
$terms = wp_get_object_terms($post->ID, 'info_category');
if (!is_wp_error($terms) && !empty($terms) && is_object($terms[0])) $taxonomy_slug = $terms[0]->slug;
else $taxonomy_slug = 'info_category';return str_replace('%info_category%', $taxonomy_slug, $permalink);
}I tried using just the string replace with the post type set up using the plugin but it didn’t work, presumably because the functions file is being called before the plugin or something?
Forum: Plugins
In reply to: [Custom Post Type UI] Custom rewrite slug issueYes I tried that. No luck unfortunately
Forum: Plugins
In reply to: [Contact Form 7 - Dynamic Text Extension] Use with ACF?Me too. That would be really useful
+1 This would be useful
Forum: Plugins
In reply to: [Floating Social Bar] Option to override/deregister header cssSorry, just seen a similar post to this here
Will resolve this
Agreed – this is perfect plugin but for the fact it only works for admins.
Forum: Plugins
In reply to: [Contact Form 7] How to get value of radio buttons and checkboxes?Fixed it. Removed
class=
in the bit that saysclass:hosting
Forum: Plugins
In reply to: [WP Mobile Detect] [Plugin: WP Mobile Detect] Too much ?I would also like to know if this is compatible with WP Super Cache. If it is – that’s really amazing.
Forum: Plugins
In reply to: [The Events Calendar] Ajax loading gif disappearedThanks very much for your reply roblagatta.
Apologies for not spotting this as my own error!
I will make some changes and then update and see if I can get things working correctly again.
Thanks
Forum: Plugins
In reply to: [The Events Calendar] Ajax loading gif disappearedHave reverted to 2.0.09 for now as the upgrade also broke some tabs on the homepage because of an error in the pjax file
Forum: Plugins
In reply to: [WP Super Cache] [Plugin: WP Super Cache] Allow Editor role to Delete Cache?Aha, great thanks
Forum: Plugins
In reply to: [WP Super Cache] [Plugin: WP Super Cache] Allow Editor role to Delete Cache?Apparently this can be done in the latest version of the plugin. I still can’t see the option anywhere when logged in as editor though. Anybody else?