iamnotagoodartist

Show a Message to AdBlock Users with jQuery / JavaScript

Show a Message to AdBlock Users with jQuery / JavaScript

AdBlock is pretty much the best thing to ever happen to the internets. That being said, sometimes it’s important to make money. You know, like, when you’re a poor dude. With bills. And a stomach that wants food. And web hosting to pay for.
I threw together some jQuery the other day to display a little [...]

Read the rest of "Show a Message to AdBlock Users with jQuery / JavaScript"


WordPress: Excluding Categories on Secondary Front Pages

WordPress: Excluding Categories on Secondary Front Pages

More precisely, this tutorial covers how to exclude categories on paged front pages, index.php, beyond the first default listing.
Excluding certain categories from the front page is a pretty easy task, just use the query_posts() function to remove those categories before going into the loop, like so:
<?php if ( is_home() ) {
query_posts("cat=-3");
}
while [...]

Read the rest of "WordPress: Excluding Categories on Secondary Front Pages"


WordPress: How to Sort Category Archive Posts by Subcategory

WordPress: How to Sort Category Archive Posts by Subcategory

By default, WordPress sorts posts in reverse chronological order, with the most recent post being at the top and the least recent at the bottom. Normally, that’s totally cool, since that’s the way we’ve been accustomed to reading blogs, but what about when you’d like a little more organization?
Let’s say, for example, we’ve got a [...]

Read the rest of "WordPress: How to Sort Category Archive Posts by Subcategory"