bradoliver
Forum Replies Created
Viewing 6 replies - 1 through 6 (of 6 total)
-
Quick question… where does this code go? functions.php?
Forum: Plugins
In reply to: [Invisible reCaptcha for WordPress] Contact Form 7 Error Message EverytimeStarted getting the same error “Cannot contact reCAPTCHA. Check your connection and try again.”… Looking forward to a fix.
Forum: Plugins
In reply to: [Multi-column Tag Map] Undefined variable: display in mctagmap.phpI added “global $display;” to the function in mctagmap.php. See line 4 below, which is line 124 in the php file.
// overwrite single_tag_title() add_filter('single_tag_title', 'mctagmap_single_tag_title', 1, 2); function mctagmap_single_tag_title($prefix = '') { global $display; global $wp_query; if ( !is_tag() ) return; $tag = $wp_query->get_queried_object(); if ( ! $tag ) return; $my_tag_name = str_replace('|', '', $tag->name); if ( !empty($my_tag_name) ) { if ( $display ) echo $prefix . $my_tag_name; else return $my_tag_name; } }- This reply was modified 9 years, 1 month ago by bradoliver.
Thanks James… 3.02 resolved it for me.
Forum: Plugins
In reply to: [Multi-column Tag Map] Undefined variable: display in mctagmap.phpI am just getting around to fixing this bug (with our site).
I’ve resolved the error by inserting
global $display;into the function. Obviously I need to make the change again if you update the plugin.Forum: Plugins
In reply to: [Multi-column Tag Map] Undefined variable: display in mctagmap.phpThat’s why I am puzzled… I only get it when clicking a tag on our “Tag Map” page.
I’ll create another tag map, and see if it persists. WP 4.5.3.
Viewing 6 replies - 1 through 6 (of 6 total)