Latest news in WordPress Coding & Design
Styling WordPress 2.7 Comments
WordPress Coding & Design A few weeks ago I wrote about the WordPress 2.7 theme enhancements and specifically how the comments were now output using the tag wp_list_comments(). However, this controls all output of your markup and for a lot of people, this is different to how their existing theme is. Just a reminder, default output is: [sourcecode language="html"] Sarah Says: November 30th, 2008 at 10:00 am Comment content goes here. [/sourcecode] This is fine, but for my ...
Continue readingHow to add the Digg button to selected articles only
WordPress Coding & Design As you know, Digg is a powerful social website which can send more than 10,000 visitors to your blog if your article is pushed to the front page. We can easily add the Digg button to our posts. All you need to do is simply copy the code and paste it into your template file and then the Digg button will appear in every post. But what if you only want the Digg button to appear in selected posts only? How to make the Digg button appear in selected ...
Continue readingCustom Styling for Posts
WordPress Coding & Design In WordPress having a custom style for a static Page is fairly easy when you use Page Templates, however the same is not so straight forward for your posts. You may wonder why you would want to style some posts differently to others. WordPress is now so much more than just a simple blogging platform. You can use it as a fully fledged photo gallery, as a CMS for your website, or a combination of these. So how do we do this? There are at least ...
Continue readingWordPress 2.7 Theme Enhancements III
WordPress Coding & Design This is the final installment of how to update your theme to make use of the new WordPress 2.7 comment features. Comment threading has been added to 2.7, which means that rather than your list of comments going in a straight order of date added, people can reply to a specific comment and their comment will appear below and indented from the comment they’ve replied to. There are pros and cons of using this method in my opinion. It means ...
Continue readingWordPress 2.7 Theme Enhancements II
WordPress Coding & Design Last week I explained about two of the three enhancements available in WordPress 2.7. This week it’s all about the new comment options. Before I continue however, there seemed to be some confusion last week from a comment or two. These changes are enhancements. Your existing themes will still work with WordPress 2.7, you will just not get the benefits or be able to use some of the new features until these changes are made. So don’t ...
Continue readingYour Theme and WordPress 2.7
WordPress Coding & Design With the release of WordPress 2.7 just around the corner, it’s time to check on your theme and add in the new functionality available to make the most of it. Also, if you currently offer themes either as free or premium, then these changes are definitely something you need to be adding in. There are 3 main changes for your theme files to consider – Post Classes, Logout Links and Comment Display. Post Classes The first new feature is ...
Continue readingCreating Author Pages
WordPress Coding & Design If you’re running a multi author WordPress site then at some point you’re going to want to have a list of the authors on your site, and give them their own page. All Blogging Tips authors have their own author page for example, which gives a brief bit of information about the author plus a list the posts they’ve written – view mine. Creating an author page is not as straightforward as other template files, however once ...
Continue readingCredit your Authors in your Feed
WordPress Coding & Design A couple of weeks ago we were looking into how to modify the feed on Blogging Tips to include the author’s URL in with their post. There are plenty of plugins that allow you to add additional comments to the end or beginning of the content, but no obvious way to edit the author line that appears under the post title. Most bloggers on a multi author blog often have their own individual blog, so being able to not just credit them but also ...
Continue readingWordPress Custom Fields
WordPress Coding & Design For many WordPress users the custom fields box is an unused section on the Write Post/Page page. What exactly are custom fields? Custom fields allow you to assign additional information to that particular post (or page, but from here on out I’ll just call it a post), and only that post ie. the information you add will only be available to that page. For example, maybe you want to include a unique comment for every post you write, but ...
Continue readingLoading JavaScripts with WordPress
WordPress Coding & Design Over the last few weeks I’ve written about using jQuery with your WordPress site. At the time I wrote saying to load jQuery use a script tag. During this past week Gary brought the WordPress function wp_enqueue_script() to my attention. The wp_enqueue_script() tag allows you to inform WordPress which JavaScripts to load much more efficiently. Register a Script If you want to use one of your own scripts ie. a script not already available ...
Continue reading






