Wordpress 2.5 vs 2.6: Changes in the Theme Codes

July 3rd, 2008 Wordpress

With most of the work focused on the backend for WP 2.6, I’m kind of glad that there’s not much changes in the code on the theme side. In fact you can safely ignore the new codes and use your existing theme without any modifications. The changes are as below.

Note: WP 2.6 RC2 vs WP 2.5.1

1) comments.php - indicates whether the Name and Mail fields are required, mainly for browsers that support ARIA-Accessibility Rich Internet Applications

line 81:
<p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" <?php if ($req) echo "aria-required='true'"; ?> />

line 84:
<p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> />

2) style.css - a new css class “.hidden”, which is used only once in searchform.php (see item 3 below)

line 619:
.hidden {
display: none;
}

3) searchform.php - hidden for future use?

line 2:
<label class="hidden" for="s"><?php _e('Search for:'); ?></label>



Theme Bugfix: TechnoHolic, SoftwareHolic, GenkiTheme (Fixed Width)

June 30th, 2008 Wordpress

Found some XHTML invalidation in comments.php file across the three themes, resulting in missing or extra < /ol > tag. It occurs when 1) there’s only comments and no trackbacks, or 2) there’s only trackbacks but no comments. Not a major issue as most browsers will still render the page correctly. If you have not modified the comments.php, simply download the new theme pack and replace only the comments.php for your blog.

Download GenkiTheme (Fixed Version)
Download SoftwareHolic
Download Technoholic (same comments.php for both free and premium edition)



How to Show Only Parent Category in a Post

June 23rd, 2008 Wordpress

Parent category: Wordpress
Child category: —- Wordpress Themes
Child category: —- Wordpress Plugins
Child category: —- Wordpress Tips

When you use the_category() template function, it displays both the parent category and any child/subcategories under it. With the above example you will see something like “Filed in Wordpress, Wordpress Themes, Wordpress Plugins, Wordpress Tips”.

Sometimes you prefer less clutter and hide all the child categories. Unfortunately the_category() does not have any optional parameters like child=0 or depth=-1. The below code may be a few lines long but does the job well. To be used within The Loop.

<?php
$parentscategory ="";
foreach((get_the_category()) as $category) {
if ($category->category_parent == 0) {
$parentscategory .= ', ';
}
}
echo substr($parentscategory,0,-2);
?>



Redesigning Theme for BlogShopr

June 16th, 2008 Wordpress

A preview of a wordpress theme in progress. Been working on the redesign for BlogShopr - my Singapore online shopping directory. Planning to convert blogshopr from a blog shops aggregator to a blog shops membership directory.

I think this theme is my most colorful theme to date. After all, blogshopr’s visitors are mainly young ladies in their teens. Probably will name it Shopaholic after my recent “Holic” series, namely SoftwareHolic and Technoholic ;)

Like the new theme? Too colorful? Too cutesy?



Get $60 Discount + $48 Coupon Code on Lunarpages Web Hosting

June 7th, 2008 Web Hosting

Now you can save $60 off for a new 24 month basic hosting plan. Coupled with the “spring” discount coupon - $2 off per month, you actually get 15 months of free webhosting. Simply signup with my referral link and earn $60 cashback, credited into your PayPal account.

$60 cash rebate + $48 spring coupon code = $108 savings!

Lunarpages solutions are at the forefront of industry standards, and are powered by Dell PowerEdge servers, the most innovative and secure servers in the industry. The most popular Basic Web Hosting package is an incredible value package:

  • 1500 GB Storage Space!
  • 15000GB Bandwidth
  • Free Domain Name for Life
  • Hosting for UNLIMITED Websites on 1 Massive Plan
  • MySQL, PHP, PERL, ASP, Python, JSP, and Ruby on Rails

How much you will save on Lunarpages Hosting Plans?

The full value of a 24 month plan is $166.80.
With our cash rebate and coupon code, you shave $108 off.
You are getting a $2.45 per month cheap and reliable hosting plan!

Procedure

What you need to do

  1. Check that your cookies are enabled (how to)
  2. Click on this link and signup at Lunarpages. Don’t close this window yet. After signing up, come back to this page.
  3. Send an email to “webmaster@ericulous.com” with subject as “Lunarpages Cashback”
    Copy, paste and edit the following in your email message

    ID: lunarpages07051946
    Name: < enter your name >
    PayPal email: < enter your paypal email >
    Domain name: < enter your domain name >

What I will do when I receive your email

  1. Verify that your order is recorded in my system
  2. Verify that Lunarpages has accepted your order and you have not cancelled your account (may make take up to 45 days)
  3. Credit $60 cashback to your Paypal

Terms & Conditions

- Only for new 2 year basic web hosting plans signup
- Requires a PayPal account. Signup up for a free account at http://paypal.com
- Offer ends on 21st Jun 2008 Extended till “Spring” coupon becomes obsolete.

Tags: discount coupon, cheap web hosting, rebate, cashback



Close
E-mail It