Recently I wrote about finding freelance work with Twitter. Now that you are are landing freelance jobs you will want assistance in managing your upcoming business. There are a number of WordPress plugins and integrated features that can assist you with that. You might need a payment system, translations, an ecommerce solution or an affordable way to sent newsletters to your clients and potential customers. I have highlighted the 6 of the best ones below.
Using Conditionals with WordPress 2.7 Sticky Posts
So, our sticky discussion was interrupted by a couple of love-filled days. But now, I’m back to finish the sticky mess that I started.
To recap: We found the sticky post setting, learned how to add the post class to our templates so the sticky post would actually show up, and then learned how to style the sticky post so it would stand out from a regular post.
Today I am going to discuss WordPress conditionals in relation to sticky posts and how they can make your sticky posts smarter.
How to Style a Sticky Post in WordPress 2.7
On Monday I finally found the sticky setting and on Wednesday I showed you how to add the post class to your template so that your sticky post would actually show up on the page.
Today I am going to show you how to style the sticky post. You might want it to look different from the rest of the posts, stand out in some way or not include the date.
Since we have already added the post class to our template, styling the sticky post only requires a little bit of CSS in the style sheet template.
WordPress 2.7 Post_Class Template Tag and Sticky Posts
On Monday I showed you where the sticky post setting was. Maybe you already knew but I had quite a time locating it and thought I might not be the only one having this problem.
So, you used that setting to make a post sticky and now you’re wondering why it isn’t working properly. Well, you have to add some code to your Main Index template.
WordPress 2.7 includes a new function called Post Class, which makes it easier to style certain parts of the theme. One of the classes used with post class is sticky. So, the template doesn’t know that a sticky post even exists until this new code is added.
How to Make a Post Sticky in WordPress 2.7
A sticky post in WordPress is one that stays at the top of the page no matter what gets posted after that. This is useful for a post that you want to highlight or for an announcement.
Way back the best way to make a post sticky was to fudge with the date – I would make it a date way in the future so it would stay the top post.
Then the WP-Sticky plugin was created, which allowed me to make a post sticky and gave me some control over styling. For example, if the sticky post is an announcement, I don’t want the date to be included because then it looks like a regular post.