• Id like for all my registered users to see a default post format in the post area on the write tab. So when they want to post a blog, they have text already in the submit area and all they have to do is edit the key parts.

    Can someone assist me as to where I could enter what I would like to appear in this area?

    I can go in to more detail if need be.

    Thanks,
    Andy

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter ataylor20

    (@ataylor20)

    bump…..

    If you want to make this site-wide for all users, you could edit /wp-admin/post.php, but you’d have to re-apply your changes with every upgrade.

    A plugin could (conceivably) be written to do this, too, but it would be rather fragile.

    A simple solution would be add it into the <textarea> <textarea> of your form, though you’ll want to make sure it only appears in new posts. Edit the script (edit-form.php, edit-form-advanced.php, or both), and change this:

    <div><textarea rows="<?php echo $rows; ?>" cols="40" name="content" tabindex="4" id="content"><?php echo $content ?>

    to this:

    <div><textarea rows="<?php echo $rows; ?>" cols="40" name="content" tabindex="5" id="content"><?php echo $content ?>
    <?php if(empty($_SERVER['QUERY_STRING'])) : ?>
    This is where your text "template" goes.
    <?php endif; ?>
    </textarea></div>

    Back up source files before editing, comment changes for future reference, etc.

    This works great! You have to edit BOTH the edit-form.php and edit-form-advanced.php.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Having a default post format in write…’ is closed to new replies.