Last week I wrote about creating a breadcrumb trail, explaining how to do this for your front page, static Page and single post page. This leaves us with the category page and archives (day, month and year).
Category Page
The category page is quite similar to the single post page code that we saw last week, except that we use the single_cat_title() function along with the get_cat_id function to get the category ID …
Adding a breadcrumb trail to your WordPress site is fairly easy to do. Yes, before anyone mentions it, there are plugins out there to do this for you, but you won’t learn from those unless you actually open them up and change things. So for those of you who actually want to learn how you can easily extend the functionality of WordPress (or for those who just want to copy the final …
If you’re running a multi-author site, or perhaps you allow people to register on your site, then adding the login box into your site would be a nice addition rather than just redirecting people to the standard login page.
You could just copy the form off the wp-login.php page, however it’s not very well marked up, plus you will probably want to fit it into a smaller area on the front end of …
A new feature with 2.7 is the sticky posts. You can write a post and set it to be sticky, and it’ll stay at the top of your front page until you unstick it. If you’ve also used the new post_class() tag, then you’ll easily be able to target the post and style it differently to the other posts on the page as you get a specific class of ’sticky’.
However, you …
There’s one question that a lot of people have asked over time about using WordPress, but there’s not really a clear cut answer. How can you remove the Category Base from your WordPress permalinks? This may not be a major concern for a standard blog site, but it may be of use to some, and I think it’s definitely more use to those using WordPress as a CMS.
My method so far works …
There may be a time when you’ve added WordPress on to an already existing site, to perhaps power the news section or to just provide a blog or multiple blogs for people. If the site is small then it’s usually easier to just convert the existing pages into static pages, and use the CMS functionality of WordPress to power the whole site. However, that may not always be the case, especially with …
It can be quite useful to be able to add in links or information that you want either yourself, as an administrator, or your registered users to see, on the front end of your website.
The default template comes with user login/logout link, usually under the Meta Information section, but most people prefer to remove this as they don’t want login links to the general public. However, once you’ve logged in, why not …