Skip to content

Positioning edit buttons

scribu edited this page Jul 30, 2012 · 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>

  ...
Clone this wiki locally