Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // This goes to tag.php
- <?php
- if ( !defined('ABSPATH') ) { die('-1'); }
- $tagi = '';
- if (isset( $_POST['tags_input'] )) {
- $tagi = esc_attr(strip_tags($_POST['tags_input']));
- }
- else {
- $a = array();
- $posttags = get_the_tags();
- if ($posttags) {
- foreach($posttags as $tag) {
- $a[] = $tag->name;
- }
- }
- $tagi = implode(',',$a);
- }
- /* html form */
- ?>
- <div class="events-community-post-content bubble" id="event_tags">
- <label for="post_tags">Tags</label>
- <input placeholder="Enter tags" type="text" size="16" name="tags_input" id="post_tags" value="<?php echo $tagi ?>" />
- <small class="note">Your comment</small>
- </div>
- //This goes to edit-event.php
- <?php tribe_get_template_part('community/modules/tag'); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement