Articles
WordPress 2.7 Beta 3

WordPress 2.7 Beta 3 has been released for your testing pleasure. Here are some of the changes since Beta 2 (over 160 changes in total):
- Numerous style improvements and refinements.
- All admin notices now go under the page title.
- PHP Notice fixes.
- Dashboard widget options now properly save.
- Menu fixes.
- New design for Quick Edit.
- Canonical feed URL fixes.
- Walker fixes.
- An update for Hello Dolly.
- Plugin installer updates.
- Numerous font updates.
- Updated login logo.
- Switch position of “Save Draft” and “Preview” buttons in publish module.
- File upload support for MS Office 2007+ file formats.
- Media upload buttons won’t show if the user doesn’t have the upload capability.
- Canonical redirects only do yes-www or no-www redirection for domains.
- Shift-click checkbox range selection improvement.
- Add New User page now separate.
- Tag suggest only suggests tags (not other taxonomy terms).
- QuickPress shows “Submit for Review” if user cannot publish.
- Private posts/pages, and password-protected posts/pages are rolled into new “Visibility” section of publish module.
If you have already installed Beta 1 or Beta 2, you can update to Beta 3 via the Tools -> Update menu. If you have problems, or if this is your first time in the 2.7 beta ring, you can download and upgrade the old fashioned way.
Tips & Tricks
Add a shortcode
This is a simple one.
/** * Your Blog title * */ function my_blog_title() { $blogname = get_bloginfo('name'); return '<span class="blog-title">' . $blogname . '</span>'; } add_shortcode('blog-title', 'my_blog_title');
Just add this to your functions.php file and then add [blog-title] in any post or page and it will return your Blog Title. :)
Tips & Tricks
Adding a external file after the first post
How might you display a Google ad after the first post or anything you like? It is very simple. You just need to add the variable $loopcounter
in the Loop. If the $loopcounter
is less than or equal to 1, then include your option. Check out the code:
<?php if (have_posts()) : while (have_posts()) : the_post(); $loopcounter++; ?> // your loop <?php if ($loopcounter <= 1) { include (STYLESHEETPATH . '/you-file.php'); } ?> <?php endwhile; ?> <?php else : ?> <?php endif; ?>
Pretty simple huh. Well in the $loopcounter
line, you may change the include to point to any file or maybe a custom widget like so:
<?php if ($loopcounter <= 1) { dynamic_sidebar( 'Plus Post' ); } ?>
Or use your code directly in between the {
& }
.
Tips & Tricks
A simple way to query posts
Here is a simple way to call query_posts
with an array of options. For all options you my use visit: WordPress Codex.
<?php $my_query = array('showposts' => 4, 'post__not_in' => $do_not_duplicate); ?> <?php query_posts($my_query); ?>
-
Tips & Tricks4 months ago
WordPress Security Hacks
-
Pages4 weeks ago
Write For Us – Guest Post
-
News3 weeks ago
How to: Show/Hide any div box with jQuery in WordPress
-
Tips & Tricks3 months ago
How to: show/hide a widget in WordPress with jQuery
-
Plugins2 months ago
Top Membership plugins
-
Tips & Tricks1 week ago
Remove the title attribute using jQuery
-
Tips & Tricks5 months ago
Remove spaces when echoing the_title
-
Tips & Tricks1 month ago
Limit the characters that display on the_title
You must be logged in to post a comment Login