with Lorelle and Brent VanFossen

WordPress Tips and Tricks – Administration Panels

WordPress Stamp LogoAs I developed my WordPress site, I found a lot of tips and tricks along the way. While I’ve written about the more extensive ones, I wanted to share a bunch of the smaller tips to help you with your WordPress site. We start with the WordPress Administration Panel.

Administration Panel

While the WordPress Administration Panels are evolving, there are still a few things you can do to improve them. Remember, when you upgrade, all of these changes are lost so take notes and store them in a text file in your WordPress root directory to remind you of the changes next time you upgrade. You may or may not want to include them. If you don’t, then delete them. But if you do, you’ll be very thankful your notes are there to help you put in your little tweaks and hacks in the Administration Panels.

Write Post Panel

To change the size of the Excerpt box on the post.php which handles your Write Post Panel content, edit the wp-admin/wp-admin.css file section that states:

#excerpt {
	height: 1.8em;
	width: 98%;
}

to:

#excerpt {
	height: 5em;
	width: 98%;
}

Be sure and hit SHIFT+F5 (Refresh) or Cntrl+Shift+R in FireFox to completely reload a fresh version of the page.

To change the size of the Write Post textarea, giving you more room in which to write your post, with a text editor, open wp-admin/edit-form-advanced.php and change:

<?php
$rows = get_settings('default_post_edit_rows');
if (($rows < 3) || ($rows > 100)) {
$rows = 10;
}
?>
<div>
<textarea rows="<?php echo $rows; ?>" cols="40" name="content" tabindex="5" id="content">

Change $rows = 10 to $rows = 30 or whatever height works for you.

Save and upload the file to the site server.

Post Preview

The Post Preview is definitely inadequate. If you, like me, are tired of seeing the images and graphics not line up right in the Preview, add this to the wp-admin/wp-admin.css, or whatever your Theme image alignment styles are:

img.centered { display: block; margin-left: auto; margin-right: auto; }
img.right { padding: 4px; margin: 0 0 2px 7px; display: inline; }
img.left { padding: 4px; margin: 0 7px 2px 0; display: inline; }
.right { float: right; }
.left { float: left }

Preview Draft Posts

Working on a complex layout in your Write Post panel? Need to see what the results will be before you post? Since the Post Preview window only shows text and what styles you provide in the wp-admin.css style sheet, you can go one step further and actually preview your post before you publish it.

  • While the post is still marked as DRAFT, click Save and Continue Editing.
  • At the top of the screen in the browser address bar, note the post ID number.
  • In another browser window, type in the address for a normal post on your site, replacing the permalink address, if you use them, with the post ID
    example.com/index.php?p=432

The page in the browser will be a “preview” of your post within your Theme. If you see something that needs fixing, make the change in the first browser window where you are editing your post, click Save and Continue Editing and then click over on the second browser window and do a complete refresh. You should see your changes. You can also run this page through a validator to check for errors.

Remember, this can only be done when the post is a DRAFT. If you have published a post for future posting and you want to check it, you can change the status back to DRAFT and then you will be able to use this method.

Customizing Number of Posts on the Manage Panel

By default, the number of posts viewed on the Manage Posts panel is 15. Well, I often have just that many posts awaiting future release. This doesn’t help me see back to the post that is coming out today. Fifteen posts was just not enough information.

To change the number of posts viewed within the Manage Posts panel, open the wp-admin/edit.php file in a text editor and around Line 70 look for:

$what_to_show = 'posts';
$posts_per_page = 15;

and change that to

$what_to_show = 'posts';
$posts_per_page = 50;

Make the 50 whatever number you want. Do not make it too high as it can eat up a lot of resources pulling so many from the database, if you are worried about things like that.

Below it a few lines is a line that displays on the screen that says:

_e('Last 15 Posts');

Change that to:

_e('Last 50 Posts');

More Administration Panel Tips and Tricks

Here are some more tips and tricks for changing the WordPress Administration Panels and administering your WordPress site or blog.

2 Trackbacks

  • […] My Daily Tasks With WordPress – Showing How I Administer My WordPress Site tags: blog administration, wordpress, blog, wordpress tips site search tags: blog administration, wordpress, blog, wordpress tips, website administration, wordpress help © Reprinted with Permission […]

  • By Glot ≈ List of Improvements on July 17, 2006 at 5:03

    […] most recent WordPress build nice admin css (Aenonfire design & Camera On Road) animated favicon css color variations a la aNieto2k, Impact Switcher categorical css layouts […]

Post a Comment

Your email is kept private. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.