Kau-Boy's AutoCompleter
Autocomplete Taxonomy in stead of title or content (2 posts)

  1. Jatsie
    Posted 3 years ago #


    I realize that this plugin was not written for the purpose, but I would like to integrate this plugin into Gravity Forms to autocomplete for a custom taxonomy. I am working on this today - any feedback would be great, I will start looking into the query in the autompleter_results.php file on line 47 .... wish me luck.


  2. Jatsie
    Posted 3 years ago #

    My solution in autocompleter_results.php:

    //$wp_query = new WP_Query();
    	//	's' => $_REQUEST['q'],
    	//	'showposts' => $choices,
    	//	'post_status' => 'publish'
    	$taxonomies = "company_taxonomy";
    	$args = array(
        'hide_empty'    => false,
        'cache_domain'  => 'core');
    	$posts = get_terms( $taxonomies, $args );

    and I ended up replacing the URL with '#' to fill the field without directing somwehere

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Kau-Boy's AutoCompleter
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic