As of May 31, 2023, we have updated our Code of Conduct.

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
0 answers
14 views

Using autocomplete with post_tag taxonomy on attachments

How do I use autocomplete on the post_tag taxonomy that I added to my attachments? Following the suggestion here, I added the post_tag taxonomy to my attachments: function dod_add_tags_to_attachments()...
kosher's user avatar
  • 245
1 vote
1 answer
40 views

How can I reintroduce autocompletion of Gutenberg components in Visual Code?

I have a development environment in Visual Code, in which I have a WordPress Theme, in which a Webpack process is watching my code changes through the integrated terminal. This process uses @wordpress/...
Mark Howells-Mead's user avatar
0 votes
1 answer
409 views

Maps search box autocomplete with callback JS function?

I am struggling with using a callback for my Google Maps API. I am trying to have a Goolge Maps autocomplete search box and collect the Lat and Long for the searched location. I've found this answer ...
RobbTe's user avatar
  • 230
0 votes
0 answers
30 views

How can i find wrong word in search box and replace with correct word

I have a search form and Many site users search for the wrong words, I want to replace these wrong words with the right ones so that users can get results faster. I have been searching for this for ...
alam7o's user avatar
  • 31
0 votes
0 answers
20 views

Form behaving differently on small screens vs desktop screen

I have an issue and I would be grateful for any ideas! I'm using a simple template bought at ThemeForest and I successfully added google maps autocomplete functionality for addresses in a field via a ...
david's user avatar
  • 101
0 votes
2 answers
57 views

buddypress remove username from autocomplete

I am using Wordpress and Buddypress and i am trying to remove or hide the username that is being displayed in the autocomplete field of messages in Buddypress. Tried some tests from this post and also ...
Honoluluman's user avatar
0 votes
0 answers
136 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
Oscprofessionals's user avatar
1 vote
0 answers
16 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:...
Sascha N.'s user avatar
1 vote
1 answer
456 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 ...
Dennis's user avatar
  • 21
1 vote
1 answer
174 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. ...
Marco Diaz's user avatar
0 votes
0 answers
39 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" }...
Łukasz's user avatar
0 votes
1 answer
381 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 ...
James's user avatar
  • 21
0 votes
1 answer
203 views

how to disable autocomplete search on wpLink?

how to disable autocomplete search on wpLink?
kian's user avatar
  • 3
0 votes
1 answer
2k 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 ...
user avatar
2 votes
1 answer
850 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 ...
marvinpoo's user avatar
  • 303
0 votes
1 answer
4k 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 ...
hetious's user avatar
  • 101
0 votes
2 answers
139 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!'; $...
inrsaurabh's user avatar
1 vote
1 answer
425 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 ( $...
Mo_'s user avatar
  • 21
0 votes
0 answers
546 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 ...
geektripp's user avatar
1 vote
1 answer
1k 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' ...
Notorious's user avatar
  • 133
1 vote
0 answers
909 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 ...
Nancy's user avatar
  • 234
0 votes
2 answers
274 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 ...
Eager2Learn's user avatar
1 vote
1 answer
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() { ...
Mahmood Rehman's user avatar
0 votes
1 answer
3k 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 ...
Christy's user avatar
  • 87
1 vote
1 answer
111 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 ...
Christy's user avatar
  • 87
0 votes
2 answers
1k 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 ...
pico's user avatar
  • 11
1 vote
1 answer
3k 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 ...
thatryan's user avatar
  • 403
0 votes
1 answer
3k 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 ...
lesolorzanov's user avatar
0 votes
0 answers
287 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 = ...
bksl's user avatar
  • 1
0 votes
1 answer
855 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 "...
Marco's user avatar
  • 113
0 votes
1 answer
3k 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 ...
jhon's user avatar
  • 21
5 votes
1 answer
7k 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 ...
Bryan's user avatar
  • 271
1 vote
1 answer
2k 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 ...
Fabrizio La Racca's user avatar
0 votes
0 answers
1k 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, ...
user avatar
0 votes
1 answer
253 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 ...
guidod's user avatar
  • 721
6 votes
6 answers
15k 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 ...
Jonathan Mayhak's user avatar
0 votes
2 answers
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 ...
Tom Oakley's user avatar
1 vote
1 answer
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 ...
Tom Oakley's user avatar
0 votes
2 answers
963 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 ...
user658182's user avatar
0 votes
1 answer
2k 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 ...
tosca's user avatar
  • 25
4 votes
1 answer
694 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 ...
Florian Heinle's user avatar
0 votes
1 answer
1k 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. ...
mneil's user avatar
  • 11
0 votes
0 answers
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 ...
Monique's user avatar
-1 votes
1 answer
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 ...
danyo's user avatar
  • 345
0 votes
1 answer
5k 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 ...
freaky's user avatar
  • 99
0 votes
0 answers
951 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-...
Ben Z.'s user avatar
  • 111
0 votes
1 answer
442 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). $...
Julien Le Thuaut's user avatar
1 vote
2 answers
5k 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 ...
Masta's user avatar
  • 55
0 votes
1 answer
4k 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 ...
Jerry Tunin's user avatar
2 votes
1 answer
671 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'); ?>...
marctain's user avatar
  • 547