WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Jatsie
    Member
    Posted 1 year ago #

    Hi

    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.

    http://wordpress.org/extend/plugins/kau-boys-autocompleter/

  2. Jatsie
    Member
    Posted 1 year ago #

    My solution in autocompleter_results.php:

    //$wp_query = new WP_Query();
    	//$wp_query->query(array(
    	//	'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

About this Topic