Author | Posts |
---|---|
October 2, 2013 at 1:14 am 8634 | |
strangerrj | This reply has been marked as private. |
October 2, 2013 at 1:38 am 8636 | |
Tareq Hasan | Ok, got the point here. As the plugin is using WP’s default tag search functionality, it doesn’t work for guests and I overlooked that. Paste this code in your themes functions.php and should work. [php] $taxonomy = sanitize_key( $_GET[‘tax’] ); $s = wp_unslash( $_GET[‘q’] ); $comma = _x( ‘,’, ‘tag delimiter’ ); $s = trim( $s ); $results = $wpdb->get_col( $wpdb->prepare( "SELECT t.name FROM $wpdb->term_taxonomy AS tt INNER JOIN $wpdb->terms AS t ON tt.term_id = t.term_id WHERE tt.taxonomy = %s AND t.name LIKE (%s)", $taxonomy, ‘%’ . like_escape( $s ) . ‘%’ ) ); echo join( $results, "\n" ); add_action( ‘wp_ajax_nopriv_ajax-tag-search’, ‘wpufe_ajax_tag_earch’ ); |
October 2, 2013 at 1:46 am 8638 | |
strangerrj | Hi Tareq, thank you. Greetings Rick |