Website Designers and Webmasters

Dedicated to all the tasks Webmasters, Website Developers and Website Designers find themselves facing.

By: Ashton Sanders

WordPress: Redirect Blog to First Post

Apr 12 2010

I just created a simple WordPress installation. It was only going to be short pages and a simple shopping cart, but at the last minute, they decided to add a blog. Since the area for text was so small, we decided to only have one post for every page. As it would only act as duplicate content, there is no point in using the blog home page at all.

With some help from WP Recipes, I created this code to redirect the blog home template (home.php) to the first post:

<?php
/*
home.php (Blog Home Page):
Redirect To First Post
*/
if (have_posts()) {
while (have_posts()) {
the_post();
wp_redirect(get_permalink());
}
}
?>

It’s actually very simple. It just uses the WordPress Redirect function to redirect to the first permalink that would show up on that page.

Enjoy,
Ashton Sanders

(P.S. If you haven’t heard, Adobe just released the pre-order for CS5… If I were to get one of the packages today, I’d probably get: Adobe Web Premium CS5. It looks ridiculously epic.)

By: Ashton Sanders

First Post – Internet Service Difficulties

Feb 26 2007

Filed under: Century Tel,Review

Internet Service in Montana

Welcome to the first post of the website design in a flash blog.

I’ve had CenturyTel DSL Internet Service for a while, and I liked them. I got Digital Phone and 1.5 MB DSL connection (nice and slow….) for about $100/month… But at least I got free long distance, and a pretty good phone number. I stayed with them for about 10 months. I left town for 5 weeks to visit family of the Christmas Break, so since I wasn’t going to be using my DSL or phone, I decided to turn it off.

Unfortunately, I ran into a small problem: I signed up for a year-long contract, so I couldn’t turn it all the way off. I thought that was reasonable enough; I had said I would stick with them for a year, so I would. I turned the Internet down to the lowest possible setting: Dial-up with 300 minutes of Internet time: $9.95/month. This brought my bill to about $30 for the month that I was gone. Great. That’s not that bad.

This is where everything started going down hill: my cellphone died. So I called back, and the girl I talked to said that my account hadn’t been updated, so we would have to do the whole process again. And this time, she said the cheapest Internet I could reduce down to was $19.95/month…. Weird. I just got off the phone with you guys and you said you could do it for $9.95/month. What happened in the last 5 minutes?

Anyway, I ended up with a promise of a bill that would be about $40 for the month, and they would help me forward my home phone to my cell phone. (Which to make a long story short, never worked. Until I called the 5th time and had them manually do it.)

My vacation time comes to a close, and I go home. I get the CenturyTel bill: $110.00…..

WHAT? Are you serious?

After an hour on the phone with these guys, I finally get my bill back to $40.00. So I decide to get cable Internet and just leave the dial up with 300 minutes in place for the next couple months until my plan runs out.

I get Digital Cable Internet, and I still have never used the dial up that I pay for $9.95/month for. I get the bill this month…. $110.00…. WHAT IS YOUR OBSESSION WITH THIS NUMBER?!?!?

Apparently, I used the dial up internet for over 1000 minutes last month…. Oh, wait… I haven’t installed the dial-up software! I have been using another company’s Cable for two months now…

Ending Thought: Don’t use CenturyTel.

-Ashton Sanders

RSS

Where Am I?

You have found the semi-coherent ramblings of Ashton Sanders: a website designer, developer and webmaster. This is primarily Ashton's place to save notes about techniques and things that he learns in his never-ending conquest of the internet. Hopefully it's coherent enough to be useful to you too.

Subscribe:

Enter your email to get automatic emails whenever Ashton posts on the blog.

Email:

Advertisers:

Email Marketing $19/Month! OIOpublisher Learn how to make Money from Blogging Hillarious, High-Quality Shirts for $6/each Great Book Keeping and Invoicing Software Advertiser Here

Tags and Categories

Links

Blog Roll