Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

mmbalaa on "Autocomplete Tag option For post"

$
0
0

This is my first topic in WP. I created one page "post" for user post and added the below code in that page [in theme]. Using this code i got post title, content and category section. But i dont get any idea for tag autocomplete like admin section. What is the solution for this?
post.php

<?php
    $content='text';
    $editor_id='tinymce';
        wp_enqueue_script('jquery.autocomplete.pack');
        wp_enqueue_script('jquery-ui-autocomplete');
        get_header();
?>
<div>
<input type="text" name="post_title" id="post_title" size="30" value="New Post" id="title" autocomplete="off" />
<br /><br />
<?php wp_editor( $content, $editor_id, $settings = array('editor_class'=>'user-post-editor','') ); ?>
</div>
<div style="
    display: inline-block;
    margin-left: 5%;">
<?php $args = array(
	'orderby'            => 'ID',
	'order'              => 'ASC',
	'hide_empty'         => 0,
); ?>
<h3>Category</h3>
 <?php wp_dropdown_categories( $args ); ?>
 <br /><br />
<h3>Tag</h3>
Need Tag Input
</div>

<?php get_footer(); ?>

Viewing all articles
Browse latest Browse all 8245

Trending Articles