Tags are broken after modification to P2 theme
-
Hello all, I have modified the P2 theme to include a post title in the post-form.php, now, it seems that the tag form does not work anymore.
Here is the code I am using:
I translated it to Spanish for my site, and I added a word counter to the post box. But the main modification was the addition of the title.
Any ideas why this is happening?
<?php $user = get_userdata( $current_user->ID ); $name = isset( $user->first_name ) && $user->first_name? $user->first_name : $user->display_name; ?> <div id="postbox"> <form id="new_post" name="new_post" method="post" action="<?php bloginfo( 'url' ); ?>/"> <input type="hidden" name="action" value="post" /> <?php wp_nonce_field( 'new-post' ); ?> <div class="avatar"><?php echo prologue_get_avatar( $user->ID, $user->user_email, 48 ); ?></div> <div class="inputarea"> <label for="posttext"><?php printf( __('Hola %s. Cual es tu historia?', 'p2'), wp_specialchars( $name ) ) ?></label> <div class="postrow" id="post-bar-title"> <input id="my_title" type="text" autocomplete="off" value="" tabindex="1" size="30" name="my_title" /> <span id="regla_titulo">Ponle un título (40 caracteres)</span> </div> <div> <textarea name="posttext" id="posttext" class="count[50]" tabindex="1" rows="3" cols="60"></textarea> </div> <label class="post-error" for="posttext" id="posttext_error"></label> <div class="postrow"> <input type="text" name="tags" id="tags" tabindex="2" autocomplete="off" value="<?php echo attribute_escape(__('No olvides las etiquetas', 'p2')); ?>" onfocus="this.value=(this.value=='<?php echo js_escape(__('No olvides las etiquetas', 'p2')); ?>') ? '' : this.value;" /> <input id="submit" type="submit" tabindex="3" value="<?php echo attribute_escape(__('Publicar', 'p2')); ?>" /> </div> <div id="reglas"> Tu historia no debe exceder las 100 Palabras, ponle un título y coloca las palabras clave!</li> Si tu historia no aparece publicada inmediatamente, no desesperes, es que aun no ha sido revisada. Es por seguridad. </div> <span class="progress" id="ajaxActivity"><img src="<?php bloginfo('template_directory'); ?>/i/indicator.gif" alt="<?php echo attribute_escape(__('Loading...', 'p2')); ?>" title='<?php echo attribute_escape(__('Loading...', 'p2')); ?>'/></span> </div> <div class="clear"></div> </form> </div> <!-- // postbox -->
I’m using wp 2.8.6 and P2.
Thanks in advance for any input you may have.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Tags are broken after modification to P2 theme’ is closed to new replies.