Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Positioning edit buttons

scribu edited this page · 3 revisions

If you would like to manually position the Edit and Save/Cancel buttons for a post, here's what you have to do:

<?php while ( have_posts() ) : the_post(); ?>

<div class="fee-group">
  <div class="fee-buttons"></div>

  <!-- replace the following two lines with whatever you need -->
  <?php the_content(); ?>
  <?php the_tags(); ?>

</div>

<?php endwhile; ?>

The buttons will be placed inside the .fee-buttons div, only if it is enclosed inside a .fee-group div.

If you have the "Edit all post fields at once." option enabled, you can also do this:

<div class="<?php post_class(); ?>">
  <div class="fee-buttons"></div>

  ...
Something went wrong with that request. Please try again.