Questions tagged [autocomplete]

The Autocomplete widgets provides suggestions while you type into the field. The datasource is a simple JavaScript array, provided to the widget using the source-option.

Filter by
Sorted by
Tagged with
0
votes
0answers
18 views

how to complete order status automatically after paypal payment received

we are using paypal payment gateway for payment we want autocomplete order status after payement received how we can complete order status automatically is there any plugin
0
votes
0answers
13 views

WP Job Manager make Location field Google auto complete

I want to make job_location array use google auto complete. 'job_location' => array( 'label' => __( 'Location', 'wp-job-manager' ), 'description'...
1
vote
0answers
11 views

Why is on status span no search results?

i have written some jQuery code for my wordpress plugin : jQuery("#kd_nr_search").autocomplete({ minLength: 2, source: function (term, response) { jQuery.post({ url:...
1
vote
1answer
40 views

How to load WP categories into array for autocomplete?

I am currently making a new site and i am stuck with the autocomplete for the standard search form from wordpress. Anyone knows how can i load my wordpress categories to use in this script? Its a mix ...
1
vote
1answer
22 views

Internationalization autocomplete JS variable

I'm working in a plugin (My first plugin) that uses autocomplete (Via JQuery UI) via an array and I'm wondering if I have to translate the array too if I want to make my plugin fully translatable. ...
0
votes
0answers
30 views

jquery Autocomplete

I know somewhere is answer but i search everywhere. I have json-server with large data http://localhost:3004/kody Data looks like this: [ { "name": "something", "postCode": "something" }...
0
votes
1answer
17 views

Back button not working after input / search submit

Thanks to Sally CJ I am super close to having everything figured out with an autocomplete search I am building out. The only problem I am having is the back button is not working after the user is ...
0
votes
0answers
31 views

Search for custom post type with autocomplete not working

I have a custom post type of show and I am trying to create a search input where the following occurs: User can start typing a few letters and auto completed suggestions (based on the post title) ...
0
votes
1answer
57 views

how to disable autocomplete search on wpLink?

how to disable autocomplete search on wpLink?
0
votes
1answer
248 views

autocomplete=“off” WordPress Login

I need to remove the auto complete password within the login page. I understand I need to set autocomplete="off". There is another article on this site (How to disable autocomplete on the wp-login.php ...
2
votes
1answer
226 views

Autoprediction / Autocomplete Search with Meta Keys

currently I am stuck with my real estate search. What I am trying to do sounds pretty simple: I have one field in a search form. I want that field be able to generate auto suggestions / auto complete ...
0
votes
1answer
1k views

The dropdown list in autocomplete is not showing

I want to use jQuery UI and autocomplete in my search form. First I want to check whether any list will be displayed so I copied the code from the documentation and pasted it in my page template. The ...
0
votes
2answers
113 views

how to auto fille conatct form 7 when user is logined

I want to auto fill some details in contact 7 form , when user is logined and how to pass php value to js. in function.php if ( is_user_logged_in() ) { echo 'Welcome, registered user!'; $...
0
votes
1answer
337 views

Convert Custom Post Data to Javascript Array for Autocomplete

I am creating a metabox that utilizes jQuery Autocomplete to display custom post data. How do I get this data: $args = array( 'post_type' => 'promo' ); $loop = new WP_Query( $args ); while ( $...
0
votes
0answers
461 views

Database for JQuery Autocomplete field

I have the JQuery code for an autocomplete field, but I am going to be adding a whole lot of possibilities. Like thousands. So I'm wanting to put them in my wordpress/buddypress database. The issue is ...
0
votes
1answer
336 views

Return an array from get_terms and store as JavaScript array for search autocomplete

I am trying to use wp_list_pluck to return an array of taxonomy names from get_terms. I'm not sure what I'm doing wrong, but this only echo's out "Array": $terms = get_terms(array( 'taxonomy' ...
1
vote
0answers
516 views

Autocomplete search box

I am making custom autocomplete search box. When my customer starts typing the first letter of a product name, I need to show all products which have that letter in their name. Same logic applies as ...
0
votes
2answers
182 views

WordPress custom taxonomies new/edit post autocomplete

I hope I can find some help or advice here regarding custom taxonomies auto-complete (maybe there is a ready-plugin but I am not aware of it). I have custom taxonomy which have around 500 items. So ...
1
vote
1answer
1k views

Adding auto-complete to custom gravity field not working

I am trying to add auto-complete to my custom fields on gravity forms.But its not working.Data returns but not showing on field.I am doing like this: (function( jQuery ) { jQuery(function() { ...
0
votes
1answer
2k views

How do I make multiple dependent input fields that use the jquery autocomplete function?

I'm trying to create a form that will allow the user to add a new listing on the front side of my equipment classifieds website. I have a custom post type set up with a custom taxonomy called ...
1
vote
1answer
104 views

Autogenerate Front End Form Field With jQuery

I am attempting to autogenerate the terms in a custom taxonomy from a front end field. However, when I use the following code and try to type in a letter the dropdown menu that appears is a bunch of ...
0
votes
2answers
915 views

How to load jquery ui autocomplete combobox?

I have tried below script to load jQuery UI Autocomplete in theme. But it doesn't load their related scripts. How should I call it to work. wp_enqueue_script('jquery-ui-autocomplete'); I think below ...
1
vote
1answer
1k views

How to add autocomplete to custom taxonomy for CPT

I was following this tutorial, http://gabrieleromanato.name/adding-jquery-ui-autocomplete-to-the-wordpress-search-form/ and have it working like that fine. However, I am attempting to make this ...
0
votes
1answer
2k views

Autocomplete or suggest from post titles inside plugin

I have been trying to use the "suggest" feature inside a plugin in wordpress. I have a custom type and when I create a new post I use a text input meta box to write inside the titles of other posts of ...
0
votes
0answers
231 views

Autocomplete with Ajax and WordPress

based on this this tutorial (I have to say that I'm a beginner) I've tried to realize a autocomplete function. So for WP I've changed this Code function searchForKeyword($keyword) { $db = ...
0
votes
1answer
646 views

Control character encode after using jquery autocomplete

I'm using jQuery UI autocomplete for three different form suggestions. Everything is working good, the only issue is that titles suggested aren't utf-8 (I think): Instead of "Bla bla - Bla" I have "...
0
votes
1answer
2k views

Wordpress autocomplete search with taxonomies

I'm trying to make a wordpress search that has autocomplete. The thing is I don't want to autocomplete the input with a post title but with categories. I explain my problem: I have a taxonomy called ...
2
votes
1answer
4k views

ACF Relationship Field Search Filtering [closed]

I am trying to assign relate posts using the ACF relationship field. It has typeahead search to search by post titles. I would like to add meta_data search to the ACF relationship search. This ...
1
vote
1answer
1k views

Implement Autocomplete for a custom field on Wordpress Plugin Frontend

I've setup my plugin to be used on the frontend using a shortcode. I have managed to use an autocomplete form on a previous website I programmed from scratch (not WP based) but I don't understand how ...
0
votes
0answers
879 views

custom field meta-box with dropdown/autocomplete

Is it possible to have a custom metabox with the ability to either: enter a new meta_value in a certain meta_key OR choose from a list of the existing meta_keys, from a dropdown/select-box, ...
0
votes
1answer
175 views

Manually cache a special, non-WP-but-using-WP page (e.g. Ajax results) with W3TC

Under the active theme folder, I have a search-autocomplete.php file which uses various WP queries to create smart JSON results delivered via AJAX to a jQuery UI Autocomplete input field. It's not a ...
6
votes
5answers
6k views

How to disable autocomplete on the wp-login.php page

It looks like there is not an easy way to add autocomplete="off" to the password input on the WordPress login page without editing the wp-login.php page directly. Is there something I'm missing? I ...
0
votes
2answers
2k views

jQuery Autocomplete not working with wp_localize_script

Bit of background: I am building an autocompleting-search box for a list of Trades (a Custom Taxonomy). I asked this question and very helpfully got a much better understanding of how WordPress and ...
1
vote
1answer
3k views

jQuery UI Autocomplete showing all results

I've built an Autocompleting search box for WordPress categories (it's actually a Custom Taxonomy), which works great (i.e it shows the categories when typed). However, when 1 key is typed, it will ...
0
votes
2answers
658 views

How do I wrap 3rd party jquery scripts so that they work in wordpress?

I'm trying to include a jQuery autocomplete script in the header.php file of my theme. The script, outside of wordpress, works great using this structure (which is the same as the jQuery ...
0
votes
1answer
1k views

jQuery autocomplete: retrieving term slug when term name selected

I'm trying to set up a customized searchform that will allow the visitor to search posts linked to term(s) of several taxonomies. The autocomplete part seems to work fine, but I've no idea how to get ...
3
votes
1answer
435 views

Custom taxonomy only shows 0 in autocomplete for terms and “Choose from the most used tags”

I have a custom post type (rezept that I added a custom taxonomy Allergiefrei to. I got this working so far. Adding terms to the custom taxonomy's box works, too, but autocomplete and 'Choose from the ...
0
votes
1answer
756 views

Media Attachment Custom Meta Fields not saving in Media Uploader when using jQuery UI Autocomplete

I am trying to write a plugin that adds a custom meta field to image attachments to give images a credit field. I use the 'attachment_fields_to_edit' and 'attachment_fields_to_save' filters. ...
0
votes
0answers
2k views

Tagit with json and autocomplete

I am using tagit Tagit for my wordpress site for adding tags through front-end. So far the taglist is displaying fine through json (for json I use the json api However, I can not get the autocomplete ...
-1
votes
1answer
2k views

using jquery autocomplete in wordpress plugin

I am currently developing a plugin for wordpress, and using jquery autocomplete. In my plugin file i enque autocomplete like this: wp_enqueue_script('jquery-ui-autocomplete'); Then i assign the ...
0
votes
1answer
4k views

custom autocomplete search

I try to implement an autocomplete search but I have some troubles to make it works correctly. When I write in search input some words, the autocomplete search doesn't filter the results and always ...
0
votes
0answers
906 views

jQuery autcomplete not working

I am trying to implement jQuery autocomplete but it is not working. When loading it the following way it does work: wp_enqueue_script('jquery-ui-autocomplete', '',array('jquery-ui-widget', 'jquery-...
0
votes
1answer
365 views

Custom taxonomy auto suggest not working in wordpress admin

I've added to my theme a new custom taxonomy in order to add future filtering capabilities to a custom post type called 'product' (I use the wooCommerce plugin which defines this custom post type). $...
1
vote
2answers
3k views

Allow AJAX call to other roles than admin

On my website, registered users (subscriber role) can send drafts and, if admins validate them, they are published. I'm trying to add a tag box to frontend editor used to send new posts. To implement ...
0
votes
1answer
3k views

jQuery drop down not appearing for autocomplete/autosuggest

I have set a field to autocomplete/autosuggest but the drop down isn't appearing as I type. I can see the admin-ajax.php requests and the data returned in the Network tab of Chrome Developer Tools so ...
2
votes
1answer
470 views

Append Auto Suggest list to specific html tag?

Right now I have a script that auto suggests some post titles, using wordpress' suggest.js <script type="text/javascript"> var se_ajax_url = '<?php echo admin_url('admin-ajax.php'); ?>...
0
votes
1answer
1k views

Auto-suggest to display meta-data, but not to include it upon click

I'm using wordpress' built in suggest scripts to create an auto-suggest form based on custom post titles... add_action('wp_enqueue_scripts', 'se_wp_enqueue_scripts'); function se_wp_enqueue_scripts() {...
12
votes
1answer
17k views

Auto-complete or auto-suggest from list of post titles

I want to have an auto-complete or auto-suggest function on a (search) form: When a user begins to type, it suggests post titles that have matching text. I'd also like it to display some meta-data (...
0
votes
1answer
147 views

Take excerpt of the content of the post and send it as the title to create new post

Explaining my goal: I would create the title by taking the first words of the post content. Ex: In the Admin interface would be the title field blank and the first 10 words of content would be sent as ...
0
votes
2answers
6k views

How to implement jquery-ui autocomplete into custom fields?

I currently have a custom fields for enter State name. I want to use the autocomplete from jquery-ui in this fields. However, I failed. This is the first time I using jquery-ui, and I am not so ...