Info
- 5 posts
- 4 voices
- Started 1 year ago by dudd
- Latest reply from innermastery
- This topic is not resolved
Change topic title on front-page.php
-
- Posted 1 year ago #
Hi,
I need to change the topic title directly on the front-page.php
i add this code on that file but don't work ...
########################################################"
<p role="main">
<label><?php _e('Topic:'); ?><input name="topic" type="text" id="topic" size="50" maxlength="80" value="<?php echo esc_attr( get_topic_title() ); ?>" />
</label>
</p>
<?php endif; do_action( 'edit_form_pre_post' ); ?>
<p><label><?php _e('Post:'); ?>
<textarea name="post_content" cols="50" rows="8" id="post_content"><?php echo apply_filters('edit_text', get_post_text() ); ?></textarea>
</label>
</p>
<p class="submit">
<input type="submit" name="Submit" value="<?php echo esc_attr__( 'Edit Post »' ); ?>" />
<input type="hidden" name="post_id" value="<?php post_id(); ?>" />
<input type="hidden" name="topic_id" value="<?php topic_id(); ?>" />
</p>
<p><?php _e('Allowed markup:'); ?><?php allowed_markup(); ?>.
<?php _e('Put code in betweenbackticks.'); ?></p>
#######################################################################"" -
- Posted 1 year ago #
Can you be more specific, please?
Anyhow, you cannot use that code without wrapping it in a
<form />. -
- Posted 1 year ago #
I need to add form on my forum front page to edit directly the topic title on it.
Now, i add this code :
#####################################################
<form name="edit_topic" method="post" action="">
<label><?php _e('Topic:'); ?><input name="topic" type="text" id="topic" size="50" maxlength="80" value="<?php echo esc_attr( get_topic_title() ); ?>" />
</label>
<input type="submit" name="Submit" value="<?php echo esc_attr__( 'Edit Post »' ); ?>" />
</form>
########################################################but when i clic submit button nothing is happening ...
-
- Posted 1 year ago #
thanks!
-
- Posted 1 year ago #
Hi,thanks for sharing the information.Really very nice tips are provided here.
-
You must log in to post.