RSS
 

Posts Tagged ‘page’

WORDPRESS HOW-TO: Ignore/Hide A Category On Your Home Page

28 Feb

Sometimes you don’t want a particular category to appear on your WordPress home page.  For me, I create weekly Twitter digests, and I’d rather they not be part of the page welcome.

The process of hiding them actually took me a little bit to figure out, so I thought I’d share.  It’s rather simple, so don’t blink!  :)

Simply edit “index.php” in the wp-content/themes/<your_theme_here>/ directory.

Between the lines:

<?php if (have_posts()) : ?>

and

<?php while (have_posts()) : the post(); ?>

Insert the line:

<?php if (is_home()) { query_posts("cat=-XXX"); } ?>

Be sure to replace “XXX” with the unique numeric ID of the category you want to ignore.  To find the ID, log into your admin, navigate to your categories, and select the one you want to ignore.  The number will then appear in the URL.

NOTE: Make sure you don’t delete the “-” before the “XXX” or else you will ONLY show entries from the category.

If you update your theme, you will probably have to repeat this procedure.

If you want to hide multiple categories simply append the other categories to the string with a comma: (Example: “cat=-12,-82,-4″)

It also follows, then, that this technique can also be used to hide tags, posts, etc.

 

Tax dollars should not allow a U.S. official to make MORE than their salary

28 Jan

This is a cause that I have come up with, and I think it a noble one.  Get more details on the Facebook group page, but the jist is:

U.S. taxpayer dollars should never allow a U.S. official (Representative, Senator, President, judge, or anyone else whose salary is paid by public taxes) to make MORE than the salary for his/her position.

Example: If a Senator’s 2009 salary is $174k, but he/she made $80k on a real estate deal in 2009, they would only be allowed to keep $94k in wages from the federal government.

President Obama said in his State of the Union speech last night:

Families across the country are tightening their belts and making tough decisions. The federal government should do the same.

I think my idea is a very simple way for him and for Congress (and others) to demonstrate that.  Check it out.

 

IE6 is not yet dead, although it should be … though I wonder

09 Nov

There’s not much contention that IE6 is an outdated browser and is not suited for the modern web.  If you don’t buy that just on sheer merit, there’s no point to read the rest of this article.

Most informed articles addressing the issue have boiled “the reason why” down to the fact that those users can’t upgrade (restricted by work, slow computer, etc.)

However, I wonder how it would be to build an HTML/JavaScript browser (which is effectively what Firefox currently is) that embeds directly into IE6 by visiting a webpage.

A user loads IE6, sets his/her home page to “awesome-js-browser.com” and then navigates from within that page.

I would venture that this would more of a nuisance and a resource hog than anything, else I think Mozilla would have tried it …

or have they? …

 
1 Comment

Posted in Computers