if(isset($_GET['get_tags'])):
$output = array();
foreach(get_terms('post_tag') as $key => $term):
// filter by $_GET['q'] here if you need to,
// for eg. if(strpos($term->name, $_GET['q']) !== false)...
$output[$key]['value'] = $key;
$output[$key]['name'] = $term->name;
endforeach;
header("Content-type: application/json");
echo json_encode($output);
die();
endif;
in this case your js would be something like:
$("#input_1_3").autoSuggest(
"http://yoursite.com/?get_tags=1",
{selectedItemProp: "name", searchObjProps: "name"});
Related Posts:
- how do I get the tag name from tag id?
- Do tags have dates?
- Display tags in list without link
- How can you tie into the tag metabox?
- How to display the_tags() as plain text
- Display tags for current post in sidebar
- How to allow user to perform search by more than one tag
- How important are WordPress tags for SEO purposes?
- Display tags belonging to a specific post type only
- Allow visitors to search by multiple tags (specific IDs)
- Displaying the most recently used tags
- Massive Tags Remove Using MySQL
- Quicktags on all textarea.. Not working on plugin?
- how to change # of tag posts on /tag page?
- How can I remove certain HTML tags from the RSS feed?
- Stop WordPress removing tags when switching from HTML to Visual (TinyMCE)
- Link directly to the first post in an archive
- Set homepage to only display posts from one tag
- Individual css class for each tag in wp_tag_cloud
- Strict tag list – user should choose only existing tags for posts
- Special characters in tag get removed for comparison on save
- Display custom list of tags in post/page editor with hooks
- How to remove ‘noindex, follow, max-image-preview:large’ in search page WordPress 5.7 up
- Displaying Posts by tag dynamically in WordPress
- Allow AJAX call to other roles than admin
- How to rename ‘TAG’ to ‘TOPIC’
- How to not show tags if the post doesn’t have any?
- Don’t show a tag on a post if it is the only post with that tag
- How to filter posts by specific date and its tag
- Remove the last character from tag name in tag archive page
- Display posts count in front of the tag, for each tag
- How to Override “Blog pages show at most” in tag.php [duplicate]
- WordPress editor: “pick from existing tags” is gone?
- Return post tags with description
- How to display tag cloud without links
- Get tags for post_type
- Line of Tag information Is Formatted Strange
- How can I make an auto-fill search box auto-completing with the tags?
- How to get the Tags on Publish post hook?
- woocommerce product tags display
- Please help me to figure out how to display my tags
- Cross Site Related Posts?
- TinyMCE – how to select tags node from the place where the caret is?
- List tags by certain letter issue with special chars like å, ä and ö
- Change Post Class function
- Strip and tags from a specific div
- Require tags for bbPress topics [closed]
- How to enable all Tag Descriptions in loop?
- WordPress Tag Page Hook?
- Tags not working with custom post type
- How can i order get_the_tags?
- Add text to Title dynamically using tags
- Checking if one of the post tags has options
- “ Language notation in the post content
- How to make tag pages look as /tags/%tagname%/ in the URL?
- Remove ‘style=’ from Tag Cloud
- Order post by taxonomy
- WordPress tags as twitter sharer URL hastags
- Get Tag Slugs that start with a word
- Add post tag without post id
- Show all videos by tag name
- Changing H1 to Normal Links
- Problem using the word “RSS” as a tag
- Print_r displaying two different post->ID if placed in sidebar or single.php
- How to set thumbnail for each tag?
- Missing tags, unexisting tags in search form within products, please help
- Detect tag page and include an Image for that specific tag
- Buddypress – Adding Tags in Profile
- Do not run this code on posts with a specific tag!
- Automatically add tag (first 4 characters) to uploaded media
- How can I automatically hyperlink tag names that are in my post body to the tag page
- wp-cli error: “Term is missing a parent”
- Random tag in the post
- Get the publish date of the older post inside a tag
- How to test if the tag list is empty for the current page?
- Get X post tags
- Unwanted word behind my title in SERP
- Insert text BEFORE the “tag” title
- tag based subscription
- How to Group While Loop “Results” of wp_query?
- Remove parentheses from tag cloud count
- the_tags outputs before echo
- Only display posts with a specific tag
- Prevent tag creation on the post edition page
- showing tag beside catagory
- Auto-Tagging a Custom Post Type
- Conditional tag for attachment posts
- Get multiple tags by slug
- How To get a list of popular tags by post views?
- Feedburner closing error
- Display posts containing at least 1 from a list of say 10 tags but not containing other tags
- Post order by selected tags
- WordPress editor, change code wrap (bbpress?)
- post specific tag cloud, how to display in descending order from popular to less?
- Need to return all tags – including empty ones – in list
- How do I exclude categories from get_tags?
- How can I add meta tags in the WordPress header?
- How to have H1 for site title only on Homepage?
- Custom message if tag returns empty results
- wordpress assign all existing tags to a specific post