PureNews

PureNews is an amazingly sleek and powerful news theme with unlimited color variations.

View full feature list Check out the live demo Buy this theme today

Latest news in WordPress Coding & Design

How to add an extra sidebar

How to add an extra sidebar
16 Aug 2008

WordPress Coding & Design Say your theme only has one sidebar.php and you want to have a different sidebar on your index then on your archives page. Adding extra sidebars is surprisingly easy and this is how to do it. First we’ll create the sidebars. You can copy your current sidebar file and rename it to something like sidebar_two or sidebar_archives, almost anything you want really. If you decide to create it from scratch and want to maintain the widgets ...

Continue reading
Posted by 5

Create Your Own Template

Create Your Own Template
10 Aug 2008

WordPress Coding & Design Creating your own WordPress template is not as complicated as you may think. A lot of people suggest to use the default template and modify that. Personally I disagree. If you’re capable of writing your own HTML markup and CSS then all you need to know are the template tags and the wordpress loop. The only theme file I would recommend copying is the comments.php file, and I’d recommend using the Classic theme’s file, not the ...

Continue reading
Posted by 21

Mixing Gallery and Blog Posts

Mixing Gallery and Blog Posts
03 Aug 2008

WordPress Coding & Design This is part 3 on using the built in WordPress Gallery features. Part 1 and Part 2 are recommended reading also. So, you’ve created a few galleries, you’ve got your single image page looking spot on with all the details and EXIF data displaying. However when you create a new gallery what happens on the front page of your site? If you’re display the full post, the whole gallery will display. If you’re displaying an ...

Continue reading
Posted by 20

Custom Fields

Custom Fields
02 Aug 2008

WordPress Coding & Design I am working on a new site for an online publication From My Bottom Step and I wanted to be able to allow authors to display external links from the post and additional resources in the sidebar or the footer of the post like some major newspaper sites do. To do so I enlisted them help of a little used wordpress feature, custom fields. The issue however was that I wanted it to be brain dead simple for authors to use. I didn’t want them to ...

Continue reading
Posted by 3

Theming Your WordPress Gallery

Theming Your WordPress Gallery
27 Jul 2008

WordPress Coding & Design Last week I wrote about using the WordPress Gallery and EXIF features, introduced in WordPress 2.5. This week I want to explain how to create your large photo theme file. Last week (if you’ve not read last week’s post, I do recommend it before proceeding!) you may remember that I mentioned that when you click one of the thumbnails it will display the medium sized photo, and that you should be able to create a theme name image.php to ...

Continue reading
Posted by 10

WordPress Gallery and EXIF

WordPress Gallery and EXIF
20 Jul 2008

WordPress Coding & Design The release of WordPress 2.5 included a built in gallery feature. Nothing major by any means, but it gave you the option of using a simple gallery to display your photos. It also included the ability to pull the EXIF data from your photos. However, whilst the features are there, there’s not much information or tutorials on using them. Hopefully this post will give you a bit more information on how to get the most from this new feature. ...

Continue reading
Posted by 49

Control Your Content Part 2

Control Your Content Part 2
13 Jul 2008

WordPress Coding & Design Last week I explained the 3 content tags, which you can use either in your WordPress template files or whilst writing your post. So how can you use these to create a different front page? Using a simple if statement you can determine which post you’re displaying and alter your settings to suit. For example, display your most recent post in full, then the rest of the posts in excerpt format. Using The Loop The WordPress Loop is used to ...

Continue reading
Posted by 3

Control Your Content Part 1

Control Your Content Part 1
06 Jul 2008

WordPress Coding & Design Controlling how your posts display throughout your site is easily done with a choice of 2 template tags and a bit of additional code. Full posts are displayed by using the_content() and excerpts are displayed by using the_excerpt(). the_content() and more This tag will display a full post unless you use the more tag. The more tag is set whilst writing the post. You can click a button on your post area’s toolbar or, if you’re not ...

Continue reading
Posted by 10

Using Conditional Tags

Using Conditional Tags
29 Jun 2008

WordPress Coding & Design Conditional tags allow you to control the information displayed on a page depending on whether a certain criteria is met. They’re always used in a standard PHP if statement and there are conditional tags for almost every check that you could think of. The PHP Code The PHP code used with conditionals is a standard PHP if statement. ie. if (condition) { statement here; } Using a Conditional Tag The most used conditional tag I use is the tag ...

Continue reading
Posted by 4

Highlight Featured Posts

Highlight Featured Posts
15 Jun 2008

WordPress Coding & Design Sometimes you want to write a post that stands out from the rest. Usually giving the selected post an additional CSS class will do the trick, but how do you work out which posts need highlighting? This is simply done by creating a new category called ‘Featured’ (note you can call the category anything you like, but I’ll refer to it as Featured in this post). If you create a new category called ‘Featured’ to ...

Continue reading
Posted by 5